kustermann@google.com
eda01014b4
Support for running tests in an iframe
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//16050006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23400 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-30 12:16:22 +00:00
antonm@google.com
4638137480
Switch from DRT to content shell.
...
R=kustermann@google.com , ricow@google.com
Review URL: https://codereview.chromium.org//15755017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23328 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 08:34:52 +00:00
ngeoffray@google.com
14e320d109
More status file changes.
...
Review URL: https://codereview.chromium.org//15824005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23323 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 07:39:49 +00:00
sgjesse@google.com
bb6d8c6d20
Remove library dart:crypto
...
Moved the contnet of dart:crypto to the package pkg/crypto.
R=dgrove@google.com , floitsch@google.com , iposva@google.com , nweiz@google.com
BUG=
Review URL: https://codereview.chromium.org//15820008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23322 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 07:29:29 +00:00
scheglov@google.com
7981ec4835
Issue 10871. Fix for analyzing file without absolute path
...
R=devoncarew@google.com
BUG=
Review URL: https://codereview.chromium.org//15780010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23314 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-29 00:42:50 +00:00
floitsch@google.com
5d058bb0eb
Adding isNotEmpty property to collection and string.
...
BUG= http://dartbug.com/3074
R=floitsch@google.com
Review URL: https://codereview.chromium.org//15263004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23294 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 17:30:37 +00:00
sgjesse@google.com
9d6a64e81b
Merge the dart:uri library into dart:core and update the Uri class
...
This merges the dart:uri library into dart:core removing the dart:uri library. Besides moving the library the Url class has been changed.
* Removed existing Uri constructor as it was equivalent with Uri.parse
* Remamed constructor Uri.fromComponents to Uri
* Moved toplevel function encodeUriComponent to static method Uri.encodeComponent
* Moved toplevel function decodeUriComponent to static method Uri.decodeComponent
* Moved toplevel function encodeUri to static method Uri.encodeFull
* Moved toplevel function decodeUri to static method Uri.decodeFull
* Rename domain to host
* Added static methods Uri.encodeQueryComponent and Uri.decodeQueryComponent
* Added support for path generation and splitting
* Added support for query generation and splitting
* Added some level of normalization
R=floitsch@google.com , lrn@google.com , nweiz@google.com , scheglov@google.com
BUG=
Review URL: https://codereview.chromium.org//16019002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23266 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 13:35:01 +00:00
lrn@google.com
37b1cd3b3f
Optimize internals of multiplex-streams.
...
Make the multiplex streams broadcast streams.
This allows you to listen twice on the same stream, instead of having to get
a new stream each time.
R=floitsch@google.com
Review URL: https://codereview.chromium.org//16007003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23256 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 12:06:34 +00:00
kustermann@google.com
a8857ed49c
Status file updates for arm -> remove Skip markers
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//15956005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23242 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 09:09:38 +00:00
lrn@google.com
781e84284f
Reapply "Active stream subscriptions".
...
Makes subscriptions the active part of a stream, with the stream
itself being just an inert creator of subscriptions.
This changes the behavior of a "single subscription" stream to match
the documentation: After the subscription is canceled, you can't
resubscribe to the stream. Previously, you could do that, but it was
never documented or intended.
This also makes the stream of a StreamController not be paused while
before it's subscribed - it is always the subscription that is paused
or not, and while there is no subscription, the stream cannot be
paused. Previously the stream was set to paused until the first
subscription in order to prevent events from being lost. That is
handled independently of pauses now.
Adds StreamController.multiplex constructor. This name is tentative,
and likely to change. Its behavior may change as well. It currently
provides a new single-subscription stream each time its "stream"
getter is read, and you can subscribe to these.
Adds StreamIterator class that allows iterating over a stream's data
events using (async) "moveNext()" and "current", like a direct style
Iterator (sorry, it won't work in a for-in loop).
Review URL: https://codereview.chromium.org//16131003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23237 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-28 07:28:36 +00:00
lrn@google.com
cc0d9d57af
Revert until Windows crash is debugged.
...
Reverts r23218, r23217, r23208, r23207, r23206, r23205, r23204.
r23218 | Path observer is listened more than once, so make it multiplex.
r23217 | Add StreamController.multiplex constructor.
r23208 | Fix bug in streamimpl
r23207 | Fix bug in stream iterator.
r23206 | Change expectations for http_parser_test.
r23205 | Fix bug in stream-impl.
r23204 | Make StreamSubscription be the active part of a string.
Review URL: https://codereview.chromium.org//15989006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23221 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 13:03:03 +00:00
lrn@google.com
23162a3847
Add StreamController.multiplex constructor.
...
The "multiplex" stream controller will generate a new stream every
time .stream is read on the controller, and it will send events to
any stream that currently has a listener.
The streams handle their own buffering. Events added before the listen
are ignored.
R=floitsch@google.com
Review URL: https://codereview.chromium.org//16003002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23217 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 12:27:20 +00:00
lrn@google.com
ee1c11a2a6
Make StreamSubscription be the active part of a string.
...
It is the one keeping the buffer of events, not the stream.
R=ajohnsen@google.com , floitsch@google.com , jmesserly@google.com
Review URL: https://codereview.chromium.org//14753009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23204 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-27 08:34:20 +00:00
scheglov@google.com
cb3bbdc62d
Manual fixes for Dart^2 analyzer
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//16059002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23195 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-25 19:09:39 +00:00
nweiz@google.com
273590c8c5
Stop working around issue 9020 in scheduled_test.
...
R=rnystrom@google.com
Review URL: https://codereview.chromium.org//16019012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23187 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 22:36:40 +00:00
ajohnsen@google.com
06091dd24c
Remove (unused) ProcessOptions in test.
...
BUG=
Review URL: https://codereview.chromium.org//15670004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23132 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 11:16:00 +00:00
ajohnsen@google.com
87ea640826
Remove ProcessOptions and make the options named arguments.
...
This also removed Process.runShell and adds a new flag: runInShell.
BUG=
R=kustermann@google.com , nweiz@google.com , sgjesse@google.com
Review URL: https://codereview.chromium.org//15883003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23131 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 11:03:40 +00:00
kustermann@google.com
6f8f27dfc0
First status file updates for chromeOnAndroid runtime
...
R=ricow@google.com
Review URL: https://codereview.chromium.org//15915007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23124 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-24 08:28:25 +00:00
ricow@google.com
b01abf0301
Update browser controller and unittest lib to use start marker to figure out when to start new tests (and send back the correct id)
...
R=kustermann@google.com
Review URL: https://codereview.chromium.org//15742006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@23059 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-23 11:06:46 +00:00
rnystrom@google.com
e7f3c51a64
Allow passing in an existing ArgParser for a command.
...
R=gram@google.com
Review URL: https://codereview.chromium.org//15621002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22973 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-21 23:20:27 +00:00
nweiz@google.com
32c219b4c5
Stop working around issue 10721.
...
R=gram@google.com
Review URL: https://codereview.chromium.org//15589002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22953 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-21 18:59:29 +00:00
nweiz@google.com
8ad0344b36
Split out unittest tests whose behavior differs in minified mode.
...
R=gram@google.com
Review URL: https://codereview.chromium.org//15492003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22910 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-20 23:30:37 +00:00
nweiz@google.com
a0e34a6b74
Fix unittest for dart2js.
...
Review URL: https://codereview.chromium.org//15350003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22878 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-17 22:38:38 +00:00
nweiz@google.com
4b2d3ba415
Fix an analyzer error in unittest.
...
Review URL: https://codereview.chromium.org//15344002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22874 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-17 21:31:35 +00:00
nweiz@google.com
912e3bb91c
Add pretty-printing to unittest and more thoroughly print values.
...
This adds a prettyPrint function that knows to respect line lengths and avoid
printing too much of very large objects. Because that function has built-in
guards against over-printing, the default error formatter is changed to print
the actual value by default.
This also tweaks the output of some matchers to take advantage of the assumption
that the full actual value will always be printed.
R=gram@google.com
Review URL: https://codereview.chromium.org//14600029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22873 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-17 21:10:15 +00:00
gram@google.com
02d1739bdd
trim() does not remove the trailing null characters.
...
BUG=https://code.google.com/p/dart/issues/detail?id=10675
R=gram@google.com
Review URL: https://codereview.chromium.org//14997015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22809 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 18:44:50 +00:00
nweiz@google.com
47965dd901
Default to UTF-8 in the HTTP package.
...
This makes ByteStream.toStringStream respect its Encoding properly.
[decodeString] and [encodeString] are still unable to do so (see issue 6284).
BUG=10573
R=rnystrom@google.com
Review URL: https://codereview.chromium.org//14958005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22805 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-16 18:32:56 +00:00
alanknight@google.com
e5d595681c
Add a DateTimeRule to default serialization
...
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//14578008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22750 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-15 17:56:45 +00:00
alanknight@google.com
f61dd39e24
Add a dateSymbols getter to DateFormat, useful to get e.g. the list of weekday names
...
R=efortuna@google.com
Review URL: https://codereview.chromium.org//14604009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22749 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-15 17:54:43 +00:00
nweiz@google.com
a5825ecd9d
Add additional Schedule heartbeat calls.
...
This also removes some unnecessary debugging logs from r22713.
TBR
Review URL: https://codereview.chromium.org//15184003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22720 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-14 23:42:18 +00:00
nweiz@google.com
ecbb8f25c0
Log verbose output when testing pub.
...
This involves creating a subclass of ScheduledProcess that takes the verbose
output and transforms it back into normal, non-verbose output.
R=blois@google.com
Review URL: https://codereview.chromium.org//14593010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22708 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-14 21:44:05 +00:00
alanknight@google.com
805def3f49
Change DateFormat doc examples to not show padding of months/days in the default locale
...
R=efortuna@google.com
Review URL: https://codereview.chromium.org//14835008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22688 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-14 16:36:04 +00:00
alanknight@google.com
cdb307fe06
Change default format to produce output that can be passed between isolates
...
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//14566015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22686 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-14 16:34:23 +00:00
ricow@google.com
75517b7b2e
Add browser controller and allow it to be used under a flag.
...
This is currently chrome and firefox only.
I am still seeing a race condition occasionally, which is the reason
for the rather verbose prints I do when failing.
I have not added prefetching yet, I will do that as a next step.
R=kustermann@google.com
Review URL: https://codereview.chromium.org//14757019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22675 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-14 12:32:24 +00:00
nweiz@google.com
14dfef9535
Fix the initialization of PendingCallbacks in scheduled_test.
...
This fixes a case where null was being passed to prefixLines, which also obviates the need for prefixLines to explicitly check for null.
R=amouravski@google.com
Review URL: https://codereview.chromium.org//15143002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22648 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 20:09:58 +00:00
floitsch@google.com
8e2f9fe2a4
Address comments from https://codereview.chromium.org/14690009
...
R=nweiz@google.com
Review URL: https://codereview.chromium.org//15128002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22642 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 18:51:50 +00:00
kevmoo@j832.com
3176b63007
pkg/unittest: fixed docs
...
R=gram@google.com
Review URL: https://codereview.chromium.org//14910011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22638 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 18:10:10 +00:00
kevmoo@j832.com
b215e0ecfb
pkg/serialization - more types
...
R=alanknight@google.com
Review URL: https://codereview.chromium.org//14985015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22637 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 18:08:11 +00:00
podivilov@google.com
357ca0a799
Close stdout and stderr before terminating the VM.
...
Otherwise stdout and stderr output is swallowed on async unhandled exceptions.
R=sigmund@google.com
Review URL: https://codereview.chromium.org//14580013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22623 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 13:40:22 +00:00
floitsch@google.com
6d7e9d310b
Use runAsync for Futures.
...
R=lrn@google.com , nweiz@google.com
Review URL: https://codereview.chromium.org//14886015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22617 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-13 10:52:56 +00:00
alanknight@google.com
2ea02fe7ca
Fix regression in meta-serializing rules
...
R=jmesserly@google.com
Review URL: https://codereview.chromium.org//14773027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22603 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 22:15:29 +00:00
scheglov@google.com
59f9b337e5
Report StaticWarningCode.IMPORT_DUPLICATED_LIBRARY_NAME
...
R=brianwilkerson@google.com
BUG=
Review URL: https://codereview.chromium.org//15004020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22584 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-10 16:08:41 +00:00
nweiz@google.com
7fb3ba3d01
Don't run the analyzer_experimental error test on the browser bots.
...
R=scheglov@google.com
Review URL: https://codereview.chromium.org//14585013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22573 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 22:54:16 +00:00
nweiz@google.com
15d6f64ab1
Fix a RegExp in analyzer_experimental/test/utils for Windows.
...
TBR
Review URL: https://codereview.chromium.org//14865015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22571 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 21:45:13 +00:00
jmesserly@google.com
9005b278e7
Implement Model-Driven-Views spec for Dart
...
This has code ported from a few different sources:
* a port of https://github.com/toolkitchen/mdv polyfill
* a port of the observable layer: https://github.com/dart-lang/web-ui/tree/master/lib/observe
* a port of list change summary: https://github.com/rafaelw/ChangeSummary/blob/master/change_summary.js
The observePath/PathObserver code is written from scratch, but inspired by change_summary. I tried to keep it simpler; it does not support dirty checking. There's no good way to do that until we get dart:mirrors.
R=floitsch@google.com , sigmund@google.com
Committed: https://code.google.com/p/dart/source/detail?r=22561
Review URL: https://codereview.chromium.org//14732003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22570 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 21:39:03 +00:00
nweiz@google.com
22793020de
Fix the intl tests.
...
R=alanknight@google.com
Review URL: https://codereview.chromium.org//15059013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22568 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 21:22:01 +00:00
nweiz@google.com
5f3be4f352
Add some user-friendly utility functions to pkg/analyzer_experimental.
...
R=alanknight@google.com , amouravski@google.com , brianwilkerson@google.com , scheglov@google.com
Review URL: https://codereview.chromium.org//14998006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22567 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 21:05:44 +00:00
jmesserly@google.com
1cef1fbc55
"Reverting 22561"
...
need to investigate test failures
Review URL: https://codereview.chromium.org//14908005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22562 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 20:43:30 +00:00
jmesserly@google.com
bf4f12c62b
Implement Model-Driven-Views spec for Dart
...
This has code ported from a few different sources:
* a port of https://github.com/toolkitchen/mdv polyfill
* a port of the observable layer: https://github.com/dart-lang/web-ui/tree/master/lib/observe
* a port of list change summary: https://github.com/rafaelw/ChangeSummary/blob/master/change_summary.js
The observePath/PathObserver code is written from scratch, but inspired by change_summary. I tried to keep it simpler; it does not support dirty checking. There's no good way to do that until we get dart:mirrors.
R=floitsch@google.com , sigmund@google.com
Review URL: https://codereview.chromium.org//14732003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22561 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 20:29:14 +00:00
gram@google.com
cef855bca6
Add a new --extra-lib option to apidoc that allows us to specify an explicit .dart file that should be included in the processing.
...
Change the gyp file to use --extra-lib for mock.dart.
Remove the import of mock.dart from unittest.dart.
R=amouravski@google.com
Review URL: https://codereview.chromium.org//14736010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22560 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 20:00:26 +00:00