Commit Graph

187 Commits

Author SHA1 Message Date
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
lrn@google.com bdce730fb2 Remove transformEvents and make StreamEventTransformer extend StreamTransformer.
Make a StreamEventTransformer the default for the StreamTransformer
factory constructor, and remove the old implementation.

Review URL: https://codereview.chromium.org//12082047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17761 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 14:04:26 +00:00
lrn@google.com b79eee44dc Fix code to not hit bug in dart2js.
Also add library tag to test. Seems to be required.

Review URL: https://codereview.chromium.org//12086042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17751 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 10:19:22 +00:00
lrn@google.com 7fc981b3a6 Add public-facing method and class that allows intercepting stream events.
This allows intercepting events at the subscription level instead of creating
a new full stream and adding the events to that.

Also fix a number of typos and bugs detected by analyzer.

Review URL: https://codereview.chromium.org//11953103

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17746 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 08:43:15 +00:00
lrn@google.com 1f05296600 Change singleSubscription/multiSubscription to normal/broadcast.
Also make StreamController not a Stream.

Review URL: https://codereview.chromium.org//12049013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17563 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 13:30:27 +00:00
iposva@google.com 57f62dd2e1 - Make sure we can "run" all tests using simarm/simmips.
Review URL: https://codereview.chromium.org//12042065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17516 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 00:42:04 +00:00
lrn@google.com f8353fb926 Make StreamController take on{Pause,Subscription]StateChange as arguments.
Review URL: https://codereview.chromium.org//12033019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17377 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 09:13:50 +00:00
lrn@google.com 2ee344cd28 Add regression-test for badly chained future-impementations.
Review URL: https://codereview.chromium.org//12043013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17351 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-21 13:10:10 +00:00
lrn@google.com ef13a0822b Make StreamController's unnamed constructor create a single-sub stream.
R=floitsch@google.com

Review URL: https://codereview.chromium.org//11887016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17049 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 09:09:47 +00:00
lrn@google.com 14130ae589 Avoid the _onSubscriptionStateChange being called twice in some cases.
R=floitsch@google.com

Review URL: https://codereview.chromium.org//11880019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17048 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 08:53:21 +00:00
lrn@google.com 9e95844154 Make Streams also cosider a thrown AsyncError a rethrow.
Also change handleError to be based on throws for errors.

Review URL: https://codereview.chromium.org//11862008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16973 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 14:08:23 +00:00
ngeoffray@google.com 34a0db05e2 Update status file for jsshell.
Review URL: https://codereview.chromium.org//11862009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16970 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 13:33:31 +00:00
ngeoffray@google.com 184a9f610a Support Timer with 0 millisecond delay in dart2js running in the command line.
Review URL: https://codereview.chromium.org//11866003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16968 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 13:02:58 +00:00
lrn@google.com 4868ee2110 Remove Futures class, move methods to Future.
Optimize Future.forEach, Future.delay.

Review URL: https://codereview.chromium.org//11865005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16954 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 09:46:45 +00:00
lrn@google.com c06ed965e7 Consider a thrown AsyncError from a future/stream handler a rethrow.
The AsyncError is not wrapped, but is used directly as the async error.

BUG=dartbug.com/7781

Review URL: https://codereview.chromium.org//11826050

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16950 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 07:02:28 +00:00
kustermann@google.com 96574ee329 Status file updates for jsshell
Review URL: https://codereview.chromium.org//11833035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16920 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 14:16:37 +00:00
lrn@google.com f5a712624e Make a Future returned by the action of Future.whenCompelete delay.
BUG=dartbug.com/7790

Review URL: https://codereview.chromium.org//11824032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16901 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 07:16:21 +00:00
floitsch@google.com c7cbb9b365 Update status file (Timer not supported in d8).
Review URL: https://codereview.chromium.org//11821034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16887 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 21:21:04 +00:00
nweiz@google.com 72630960c5 Fix Futures.wait.
The old implementation would throw any errors emitted by any sub-future to the
top level.

Review URL: https://codereview.chromium.org//11818013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16881 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 20:41:57 +00:00
lrn@google.com 7d9d8cdf6d Added toMultiSubscriber on Stream.
(Naming suggestions appreciated.)

Review URL: https://codereview.chromium.org//11791045

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16861 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 16:16:51 +00:00
lrn@google.com 076d437787 Change limits on slow-consumer test.
The actual buffer size was too big to store in 32 MiB on a 64-bit VM.

Anders: Check why the other slow-consumer tests work.
TBR=ajohnsen@google.com

Review URL: https://codereview.chromium.org//11818027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16851 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 13:28:23 +00:00
lrn@google.com 697af4e8e1 Add Stream.fromIterable
Also add Iterable.generate as helper.
Should we have Stream.generate as well?

Review URL: https://codereview.chromium.org//11794044

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16848 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 12:34:34 +00:00
ager@google.com 75c8f427cc Update remaining usages of Completer.completeException.
R=floitsch@google.com
BUG=

Review URL: https://codereview.chromium.org//11827017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16840 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 09:29:39 +00:00
floitsch@google.com ca73e8fa93 Fix stream-pausing in dart2js.
Review URL: https://codereview.chromium.org//11787039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16804 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 15:34:56 +00:00
ahe@google.com fb2a233d2c Remove generic typedefs that dart2js chokes on.
Review URL: https://codereview.chromium.org//11794047

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16797 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 13:51:44 +00:00
lrn@google.com aa7cbb2b41 Remove Signal class and use Future/.whenComplete instead.
Review URL: https://codereview.chromium.org//11794043

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16792 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 12:59:00 +00:00
ajohnsen@google.com 5696291f18 Fix future_test.dart and remove future2_test.dart.
BUG=

Review URL: https://codereview.chromium.org//11788028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16784 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 09:27:08 +00:00
floitsch@google.com 3106d74103 Update status file.
Two tests are timing out when compiled with dart2js and run in the browser.

Review URL: https://codereview.chromium.org//11775022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16772 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 00:14:31 +00:00
vsm@google.com 52f5c2ff22 Test fixes for dartium
Review URL: https://codereview.chromium.org//11778030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16769 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 23:47:37 +00:00
floitsch@google.com 00d44bd6e8 Enable async-tests in drt (where Timer is available).
Review URL: https://codereview.chromium.org//11784027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16743 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 20:00:17 +00:00
ahe@google.com fa511096e8 Don't use redirecting factories with type arguments.
Also, update status file.

Review URL: https://codereview.chromium.org//11783011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16729 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 16:56:16 +00:00
ager@google.com 10a3642727 Mark broken future test as failing on VM.
There is already a bug report for this. It looks like a high priority
that the new future behavior is correctly tested.

R=lrn@google.com,ajohnsen@google.com,floitsch@google.com
BUG=

Review URL: https://codereview.chromium.org//11776023

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16700 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 14:48:44 +00:00
lrn@google.com 2b2de751a7 Fixed status files for dart2js corelib/lib/language tests.
Moved two tests to lib/async where they belong.

R=floitsch@google.com
CC=karlklose@google.com

Review URL: https://codereview.chromium.org//11784020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16699 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 14:15:29 +00:00
ricow@google.com 75ae6c0c85 Suppress async tests on dartium until bindings have been fixed.
Issue 7731 filed.
Review URL: https://codereview.chromium.org//11779020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16698 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 13:50:04 +00:00
karlklose@google.com 126820a65f Mark tests that use Timer as failing on dart2js.
There is no implementation for Timer in JavaScript.

R=floitsch@google.com
BUG=dartbug.com/7728

Review URL: https://codereview.chromium.org//11773022

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16697 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 13:39:09 +00:00