johnmccutchan@google.com
ecab23ea1c
Merge scalarlist.status into lib.status. Will fix dart2js breakage.
...
Review URL: https://codereview.chromium.org//12567005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19703 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 18:21:42 +00:00
johnmccutchan@google.com
502396b1a9
Move tests out of corelib into scalarlist
...
Review URL: https://codereview.chromium.org//12705002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19699 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 17:43:54 +00:00
floitsch@google.com
dd48256fe5
Remove deprecated StringBuffer.add, addAll and addCharCode.
...
Review URL: https://codereview.chromium.org//12473003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19690 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 13:07:18 +00:00
lrn@google.com
bead146749
Renamed StreamSink to EventSink. Renamed signalError to addError.
...
Review URL: https://codereview.chromium.org//12610006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19683 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-08 11:31:19 +00:00
iposva@google.com
b25d694633
- Avoid wrapping into Mints when generating random numbers.
...
- Update Random number tests.
- Fix String.fromCharCodes signature.
Review URL: https://codereview.chromium.org//12622002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19642 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 17:19:47 +00:00
ajohnsen@google.com
2d48e3d8e8
Re-enable slow_consumer* tests, now stream pausing behave as expected.
...
To enable slow_consumer2_test to run on x64, double the heap size.
BUG=https://code.google.com/p/dart/issues/detail?id=7726,https://code.google.com/p/dart/issues/detail?id=8647
Review URL: https://codereview.chromium.org//12425010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19620 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 13:19:36 +00:00
ager@google.com
ee442f190e
Add dart analyzer test suite 'analyze_library' that fails if we
...
introduce static type warnings in certain dart libraries.
I wanted this for dart:io and might as well add it for the other
libraries that have no warnings when analyzed.
This required a bit of test script reworking. dartc used a leading
hash in a file to determine if it was a test. That is now broken
and has been removed. This also allowed me to override the
readOptionsFromFile method in test suites so that certain analyzer
test suites can require all tests to be static clean.
R=ricow@google.com ,kustermann@google.com ,sgjesse@google.com ,danrubel@google.com
BUG=
Review URL: https://codereview.chromium.org//12475004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19597 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-07 07:25:32 +00:00
lrn@google.com
1648ec1e12
Another test that cancels a timer.
...
Review URL: https://codereview.chromium.org//12391059
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19385 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 13:48:52 +00:00
lrn@google.com
ef1d88fc36
Better status file for bug. Also catches jsc.
...
Review URL: https://codereview.chromium.org//12391058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19383 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 13:40:26 +00:00
lrn@google.com
4d30b1bbbe
Split stream_state_test into three files.
...
The test "framework" is in a file of its own, and the tests are
split into those that uses timers greater than zero (which doesn't
work on d8) and the rest.
BUG=
Review URL: https://codereview.chromium.org//12374085
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19381 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 13:23:43 +00:00
lrn@google.com
eb90412c66
Change and structure how Stream implementations do callbacks.
...
Callbacks are the on-pause/subscription-state change calls from a stream.
Now a callback is an atomic operation. State changes happening during a callback
will not trigger a new callback before the old one is done. If the state is
changed during the callback, another callback will follow immediately.
Firing of events is also atomic, so a callback will not happend during an event
being fired, but will be triggered afterwards if the state was changed by the
event handlers.
A stream controller (or any other listener for callbacks) will not be told
immediately if a paused stream is resumed. If there are pending events in the
queue, those will be fired before the controller is considerered resumed.
A canceled subscription will immediately stop getting events.
Previously it would get the current event being fired, but it's more rational
to not get events after you have said you don't want them, instead of having
the handlers have to discard events after a cancel.
Review URL: https://codereview.chromium.org//12393009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19379 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-04 11:53:12 +00:00
kasperl@google.com
24181b78ff
Test seems to pass. Will investigate.
...
R=ricow@google.com
BUG=
Review URL: https://codereview.chromium.org//12374018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19235 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-28 15:05:00 +00:00
kasperl@google.com
b4ecc6e823
Re-enable support for --disallow-unsafe-eval.
...
R=erikcorry@google.com ,ahe@google.com
BUG=
Review URL: https://codereview.chromium.org//12388018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19219 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-28 13:21:33 +00:00
lrn@google.com
8806250918
Fix for issue 8311.
...
Fix bad state in done-handler of event-transform-stream
Review URL: https://codereview.chromium.org//12380015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19215 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-28 12:18:40 +00:00
lrn@google.com
96412ca371
Fix mising rename in tests of Future.isCompleted.
...
Review URL: https://codereview.chromium.org//12387012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19212 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-28 11:54:19 +00:00
lrn@google.com
cd4ae7e4af
Add test for whether a completer or stream controller has been closed.
...
BUG=http://dartbug.com/8638
Review URL: https://codereview.chromium.org//12324004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19211 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-28 11:36:54 +00:00
nweiz@google.com
987dc18324
Make sure Future.forEach properly pipes exceptions.
...
BUG=8817
Review URL: https://codereview.chromium.org//12317139
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19164 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 19:22:27 +00:00
lrn@google.com
6b4f4b1bab
Change new List(n) to return fixed length list.
...
Deprecate List.fixedLength, add List.filled.
Make Iterable.toList and List.from take "growable" argument,
defaulting to false.
Review URL: https://codereview.chromium.org//12328104
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19112 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-27 08:45:04 +00:00
lrn@google.com
3c0ac360e7
Remove deprecated string features.
...
Make String.codeUnits return a List.
Review URL: https://codereview.chromium.org//12282038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18960 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-25 10:48:09 +00:00
ngeoffray@google.com
f1ee50d904
Try to not use incomplete Dart types in HType.
...
Review URL: https://codereview.chromium.org//12324012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18760 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-20 15:13:32 +00:00
ajohnsen@google.com
d09e7ef17b
Disable slow_consumer_test until we resolve issue 8647.
...
BUG=
Review URL: https://codereview.chromium.org//12310013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18755 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-20 14:03:35 +00:00
lrn@google.com
247601ab57
Increase size for slow-consumer test (overflows memory on X64).
...
Address comments from previous commit.
Make recursive callbacks from a Stream work correctly.
Review URL: https://codereview.chromium.org//12321010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18753 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-20 13:21:32 +00:00
lrn@google.com
0b84212bc3
Change Stream callbacks.
...
During a stat-change callback, events can't be fired. Any events added will be delayed.
When both the subscription state and the pause state has changed in a single operation, only the subscription state change callback is called.
After calling _close on a Stream (close on a StreamController/scheduling a Done event), the pause-state change callback will no longer be called. All necessary pause handling will be done internally in the Stream, since the stream controller can't add any new events anyway.
Review URL: https://codereview.chromium.org//12319010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18748 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-20 12:45:43 +00:00
ahe@google.com
94b4da259c
Change IsolateNatives.computeThisScript to use captured value of document.currentScript.
...
This should work on all browsers, including IE9. The problem with IE9 is that it doesn't define the "stack" property on exceptions.
Review URL: https://codereview.chromium.org//12288047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18694 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 15:50:32 +00:00
ahe@google.com
7f09393448
Mark tests as failing on IE9
...
Review URL: https://codereview.chromium.org//12218159
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18685 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 13:16:11 +00:00
johnniwinther@google.com
c53f4794e9
Status updated.
...
Review URL: https://codereview.chromium.org//12282037
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18675 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 12:01:04 +00:00
johnniwinther@google.com
5d5909b0f1
Status updated.
...
Review URL: https://codereview.chromium.org//12218152
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18654 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 07:09:55 +00:00
johnniwinther@google.com
16b104c6f9
Take type arguments into account in interface type subtype check.
...
BUG=http://dartbug.com/7342
Committed: https://code.google.com/p/dart/source/detail?r=17912
Review URL: https://codereview.chromium.org//12079094
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18651 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-19 06:40:31 +00:00
ahe@google.com
4d40dfb459
Update status file
...
Review URL: https://codereview.chromium.org//12297017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18646 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-18 15:57:41 +00:00
ngeoffray@google.com
49a828db89
Test fails again. Because the bug seems very brittle, marked as fail/pass.
...
Review URL: https://codereview.chromium.org//12298021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18640 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-18 15:40:18 +00:00
ahe@google.com
25c6dedd61
Skeleton API for lazy library loading.
...
Review URL: https://codereview.chromium.org//11784018
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18637 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-18 15:32:22 +00:00
kasperl@google.com
db6b7a1da7
No longer provokes an error on JSC.
...
R=ngeoffray@google.com
BUG=
Review URL: https://codereview.chromium.org//12298020
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18627 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-18 13:48:02 +00:00
lrn@google.com
03f5a66836
Recommit changing List.skip/take/revert returns Iterable and remove mappedBy.
...
This reverts r18591.
Review URL: https://codereview.chromium.org//12295009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18615 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-18 10:35:51 +00:00
rnystrom@google.com
0e0473d33a
Unbreak pub:
...
Revert "Make List.skip, List.take and List.reversed return Iterables, not Lists."
This reverts commit 44c3745a76acfad3d1d5bfc7a8b8c8e2def30e09.
Revert "Remove deprecated mappedBy."
This reverts commit 779ab69eab73e5e349245e99560b18955908e0cc.
BUG=dartbug.com/8560
Review URL: https://codereview.chromium.org//12286004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18591 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 18:38:42 +00:00
floitsch@google.com
0672317bec
Remove deprecated mappedBy.
...
Committed: https://code.google.com/p/dart/source/detail?r=18575
Reverted: http://code.google.com/p/dart/source/detail?r=18576
Review URL: https://codereview.chromium.org//12212213
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18579 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:57:18 +00:00
floitsch@google.com
ad839e6957
Revert "Remove deprecated mappedBy."
...
This reverts commit 18575.
Review URL: https://codereview.chromium.org//12207205
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18576 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:23:22 +00:00
floitsch@google.com
b37100770b
Remove deprecated mappedBy.
...
Review URL: https://codereview.chromium.org//12212213
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18575 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-15 13:18:17 +00:00
floitsch@google.com
02a5b031fe
Change Future.delayed to take a Duration.
...
Review URL: https://codereview.chromium.org//12224081
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18471 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 19:31:22 +00:00
ngeoffray@google.com
d6e257abd7
Update status file for test that triggers a bug in jsc.
...
Review URL: https://codereview.chromium.org//12263008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18453 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-13 16:01:56 +00:00
floitsch@google.com
3f7146707d
Rework Timer interface.
...
Review URL: https://codereview.chromium.org//12213092
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18326 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-11 19:22:16 +00:00
lrn@google.com
0e6cc375c4
Fix bad handling of done events in _ForwardingStream.
...
On a done event, the subscription is stale, but the forwarding
stream uses the presence of the subscription as a state-marker for
it being useful. Changed to null the subscription on a done event.
BUG=http://dartbug.com/8311
Review URL: https://codereview.chromium.org//12213009
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18212 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-07 10:17:05 +00:00
floitsch@google.com
cb10990e5a
Remove Sink and move CollectionSink to async.
...
Committed: https://code.google.com/p/dart/source/detail?r=18063
Reverted: https://code.google.com/p/dart/source/detail?r=18067
Review URL: https://codereview.chromium.org//12154006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18144 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-05 15:32:18 +00:00
floitsch@google.com
cb1bff12b6
Revert "Remove Sink and move CollectionSink to async."
...
This reverts commit 18063.
Review URL: https://codereview.chromium.org//12192021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18067 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-04 19:30:15 +00:00
floitsch@google.com
02f6b1835d
Remove Sink and move CollectionSink to async.
...
Review URL: https://codereview.chromium.org//12154006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@18063 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-04 19:03:55 +00:00
lrn@google.com
11c5bd3d11
Add Future.of that calls a function and captures the result
...
This makes
new Future.of(func)
equivalent to
new Future.immediate(null).then((_) => func())
which should kill that idiom.
Review URL: https://codereview.chromium.org//12091105
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17979 260f80e4-7a28-3924-810f-c04153c831b5
2013-02-01 13:15:42 +00:00
lrn@google.com
9b23dff467
Reapply "Rename mappedBy to map."
...
This reverts commit r17907.
TBR.
Review URL: https://codereview.chromium.org//12090093
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17918 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 15:12:56 +00:00
floitsch@google.com
b1a118d5ce
Revert "Rename mappedBy to map."
...
This reverts commit 17899.
Review URL: https://codereview.chromium.org//12087103
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17907 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 14:02:27 +00:00
lrn@google.com
0dc2f4b1ba
Rename mappedBy to map.
...
Retain a deprecated mappedBy for now.
Change return type of mappedBy, skip and take on List to Iterable.
BUG= http://dartbug.com/8063
BUG= http://dartbug.com/8064
BUG= http://dartbug.com/6739
BUG= http://dartbug.com/7982
Review URL: https://codereview.chromium.org//12086062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17899 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 12:37:13 +00:00
lrn@google.com
81683c5364
Remove Stream.cyclic/superceding.
...
Review URL: https://codereview.chromium.org//12088069
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17837 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 11:36:44 +00:00
lrn@google.com
df8d47e895
Fix various warnings from the analyzer.
...
Review URL: https://codereview.chromium.org//12089066
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17836 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 11:35:29 +00:00