Commit Graph

2071 Commits

Author SHA1 Message Date
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
ager@google.com 8344be9558 Mark slow_consumer2_test failing on x64 VM config
R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16693 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 12:50:19 +00:00
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
scheglov@google.com ecd5c7d0bf Issue 5064. Some more 'skip' tests triage
http://code.google.com/p/dart/issues/detail?id=5064

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16227 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-17 20:39:03 +00:00
ager@google.com 5ddf3ceadd Add verify method to HMAC instances to have a comparison utility that does not leak information through timing.
R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@15245 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-22 11:49:02 +00:00
gram@google.com cdb7da543b Library syntax updates. Covers all remaining files in ~/tests aprt from ~/tests/language and ~/tests/standalone.
Review URL: https://codereview.chromium.org//11358203

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14815 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-12 22:45:18 +00:00
scheglov@google.com 1d310ff72c Report error for deprecated #library #import #source
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14535 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-05 16:21:20 +00:00
gram@google.com 981c4b11df Restructure pkg/unittest and pkg/webdriver to follow the pub conventions.
This means all imports of unittest in our test code had to change to include 'lib' in the path.
While doing that change I changed the library/imports to the new syntax in the affected files.
Review URL: https://codereview.chromium.org//11301046

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14443 260f80e4-7a28-3924-810f-c04153c831b5
2012-11-01 23:09:47 +00:00
scheglov@google.com 2e574c8c14 Issue 5887. Parts must start with 'part of'.
Second attempt.
Now only DartC changes, and status updates.
So, should not break anyone else.

R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14217 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-29 19:17:28 +00:00
efortuna@google.com 5df1c2a7ad Enable Opera tests.
Review URL: https://codereview.chromium.org//11271016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14091 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-25 18:05:43 +00:00
floitsch@google.com e7c5e69beb Make String.charCodes a getter.
Review URL: https://codereview.chromium.org//11263040

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@14078 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-25 14:25:43 +00:00
floitsch@google.com 27cadf2b66 isEven, isOdd, isNegative, isMaxValue, isMinValue, isInfinite, isPositive, isSingleValue.
Review URL: https://codereview.chromium.org//11227042

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13974 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 16:15:36 +00:00
ahe@google.com 6254729761 Revert "Parts must start with 'part of'" and "Attempt to fix VM build"
This reverts r13961 and r13963.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13967 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 14:24:04 +00:00
scheglov@google.com 50b5b6e1a8 Parts must start with 'part of'
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13961 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-23 13:20:50 +00:00
regis@google.com adb534674c Change core lib, dart2js, and more for new optional parameters syntax and semantics (new semantics is not enforced yet).
Review URL: https://codereview.chromium.org//11090016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13684 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-16 16:03:47 +00:00
johnniwinther@google.com c5836e4af1 Revert "dart2js_mirrors_test added"
This reverts commit r13652.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13653 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-15 11:15:32 +00:00
johnniwinther@google.com 962ea5353a dart2js_mirrors_test added
Review URL: https://codereview.chromium.org//11118020

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@13652 260f80e4-7a28-3924-810f-c04153c831b5
2012-10-15 10:53:33 +00:00