Commit graph

922 commits

Author SHA1 Message Date
nweiz@google.com
a80a4ad3ad Stop manually handling broken symlinks in listDir in pub.
Review URL: https://codereview.chromium.org//14187003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21529 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 23:24:20 +00:00
nweiz@google.com
ee5f6fc653 Use the dart:io IOSink API in pub.
Review URL: https://codereview.chromium.org//14266003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21525 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 22:59:30 +00:00
floitsch@google.com
466d6670c1 Refactor Future constructors.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21517 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:24:27 +00:00
floitsch@google.com
6c6ee276eb Remove tests that don't work with asBroadcastStreams anymore.
Review URL: https://codereview.chromium.org//14110012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21515 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 21:08:09 +00:00
floitsch@google.com
a1e11534ec First round of fixes.
Review URL: https://codereview.chromium.org//14263019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21501 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 19:31:41 +00:00
floitsch@google.com
62d413ec91 Remove StreamController.broadcast.
Review URL: https://codereview.chromium.org//14136004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21499 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 19:08:17 +00:00
floitsch@google.com
5431a5af54 Remove AsyncError with Expando.
Review URL: https://codereview.chromium.org//14251006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21498 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 18:58:32 +00:00
floitsch@google.com
e2ee353940 Rename unsubscribeOnError to cancelOnError.
Review URL: https://codereview.chromium.org//14251013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21469 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 16:07:36 +00:00
ajohnsen@google.com
b4eacbf8aa Rename RandomAccessFile.readList and RandomAccessFile.writeList to RandomAccessFile.readInto and RandomAccessFile.writeFrom.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21466 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:44:41 +00:00
floitsch@google.com
759a366cea Remove insertRange.
Review URL: https://codereview.chromium.org//13956006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21464 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 15:20:16 +00:00
lrn@google.com
485c8a5999 Move Iterable implementation to collection.
Add IterableMixin and IterableBase to dart:collection.
For now, the implementation is duplicated, because mixins and const
constructors don't mix. We hope that mixins will be improved in the
future to allow using the mixin to define the base class.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21457 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 14:32:16 +00:00
floitsch@google.com
bebe3ac2cd Refactor List.setRange function.
Review URL: https://codereview.chromium.org//13863012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21452 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 13:52:29 +00:00
ajohnsen@google.com
b09546b138 Don't delay IOSink.close() with no subscription to the next instance.
This fixes the issue with pub I found. Added TODO in pub, as
stdout/stderr doesn't really need wrapping anymore.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21431 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 11:21:08 +00:00
ajohnsen@google.com
e718657e85 Fix dartc tests and pub after IOSink change.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21420 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 08:25:55 +00:00
ajohnsen@google.com
67650cb16e Remove .writeStream, .consume and rewrite IOSink to correctly implement a (sane) well-defined behaviour of the .done future.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21416 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-15 07:35:45 +00:00
floitsch@google.com
94fd64a5e2 Import math library with a prefix.
Review URL: https://codereview.chromium.org//14111004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21406 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-13 13:17:13 +00:00
ajohnsen@google.com
044f0d02eb Remove Collection, Collections and clean up List/Set/Queue implementations of retain/remove.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21338 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 09:34:52 +00:00
floitsch@google.com
285849c801 Change hasSubscribers to hasListener.
Review URL: https://codereview.chromium.org//14103010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21337 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-12 09:30:05 +00:00
amouravski@google.com
f9e2907a23 Revert "Revert "Attempt to re-commit Dartdoc exports.""
This reverts commit 1340ca938883c2810fbc4e6d4ed4c52b68694faf.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21320 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 22:42:55 +00:00
amouravski@google.com
e492c020ed Revert "Attempt to re-commit Dartdoc exports."
This reverts commit fd5ad9b823fab60724ef00b68beaa7756873ccf0.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21316 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 21:21:49 +00:00
amouravski@google.com
362cf71a5c Attempt to re-commit Dartdoc exports.
Review URL: https://codereview.chromium.org//14088002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21313 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 21:14:15 +00:00
ajohnsen@google.com
dcaf52732e Remove StreamSink(replaced by EventSink) and make IOSink extend EventSink.
With this change 'writeBytes' was renamed to 'add'.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21275 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 12:54:19 +00:00
lrn@google.com
f41508d33b Added new version of reduce.
Removed min/max and uses of min/max.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21258 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 08:32:31 +00:00
ricow@google.com
9fd1680aa5 Fix apidoc dependencies and reenable editor test
Add back full copy of lib/_internal
Also fix snapshot dependency on old dart2js snapshot location
Review URL: https://codereview.chromium.org//14155002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21257 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 07:47:18 +00:00
ricow@google.com
7f11fa7ebd Mark oauth2/with_server_rejected_credentials_authenticates_again_test as flaky
Filed http://dartbug.com/9839
Review URL: https://codereview.chromium.org//14152003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21255 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 07:19:56 +00:00
ricow@google.com
00da866b33 Move the dart2js snapshot into bin directory of sdk root.
This is the first step in eliminating lib/_internal.
Review URL: https://codereview.chromium.org//13945008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21247 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-11 05:47:24 +00:00
nweiz@google.com
b9120c526d Renumber a TODO from issue 4928 to issue 9832.
Review URL: https://codereview.chromium.org//14106004

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21238 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 23:25:11 +00:00
rnystrom@google.com
68a5c9a803 Add flag to disable capturing stack traces.
BUG=http://dartbug.com/9697

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21237 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 23:20:43 +00:00
amouravski@google.com
3d7abb414a Exclude the expect library from apidoc.
Review URL: https://codereview.chromium.org//13818019

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21227 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 19:42:26 +00:00
ahe@google.com
adf844a4fe Make only_in_release_mode read the environment variable directly.
BUG=http://dartbug.com/9821

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21211 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 15:44:11 +00:00
nweiz@google.com
d50f344915 Revert dartdoc documenting exports.
This is causing a bunch of weird build breakages and I'm not going to have time
to fix them all tonight.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21177 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-10 01:01:08 +00:00
nweiz@google.com
8751525bae Have dartdoc document exports.
BUG=9651

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21172 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 21:45:16 +00:00
ricow@google.com
14a6ddcacc Remove some old leftover cleanup code
Review URL: https://codereview.chromium.org//13841010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21156 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 16:04:02 +00:00
ajohnsen@google.com
a323cd84cb Revert "Have dartdoc document exports."
Revert "Fix the dartdoc build."
Revert "Really fix Dartdoc."

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21139 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 08:59:39 +00:00
nweiz@google.com
46e1783cae Really fix Dartdoc.
Review URL: https://codereview.chromium.org//13882002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21131 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 02:11:18 +00:00
nweiz@google.com
8db0ca07f4 Fix the dartdoc build.
Review URL: https://codereview.chromium.org//13878002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21128 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-09 01:14:25 +00:00
ahe@google.com
da25a12caf Only build apidoc in release mode.
Review URL: https://codereview.chromium.org//13784002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21068 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 12:43:25 +00:00
ajohnsen@google.com
1bae12223b Fix recursive directory-deletion of top-level files/links.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21060 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 11:30:33 +00:00
ahe@google.com
0f111680af Fix dependencies of apidoc.
Review URL: https://codereview.chromium.org//13722007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21058 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-08 10:49:04 +00:00
kevmoo@j832.com
f2059edd6e pub/validator/lib_test: use group instead of integration
All tests are now registered before the test system starts.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21005 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 22:56:40 +00:00
floitsch@google.com
c93132625d Fix for pub.
Review URL: https://codereview.chromium.org//13598017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20987 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 17:16:54 +00:00
floitsch@google.com
bef8ebb5f6 Add Iterable.fold (and Stream.fold) which replace reduce.
For now this is just a copy. In a next step we will change the behavior of
`reduce`.

BUG= http://dartbug.com/9536

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20978 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 16:12:40 +00:00
sgjesse@google.com
e10bc2d3e0 Reapply "Add a sleep function to dart:io"
This reapplies r20952, r20953, r20954 together with hiding sleep from
dart:io in a number of tests.

R=ager@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20964 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-05 13:04:26 +00:00
ahe@google.com
43d9cdb340 Ensure apidoc exits with non-zero exit code when dart2js crashes.
Also, print the stack trace when dart2js crashes.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20912 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-04 10:32:18 +00:00
nweiz@google.com
5e5d82725c Split apart several asynchronous tests to reduce timeouts.
Review URL: https://codereview.chromium.org//13472016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20827 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-02 22:39:43 +00:00
amouravski@google.com
8a8de00b90 Changed pkg option to package-root.
pkg will remain in a deprecated state for the time being.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20808 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-02 19:32:51 +00:00
nweiz@google.com
59a85239a7 Split up some slow pub tests and mark some scheduled_test tests as slow.
BUG=9231

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20758 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-01 23:20:11 +00:00
nweiz@google.com
2510e91be2 Fix a few bugs breaking the pub tests.
Review URL: https://codereview.chromium.org//13370003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20709 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-30 00:39:31 +00:00
nweiz@google.com
57bf732773 Always enable the friendly pub unittest config locally.
Review URL: https://codereview.chromium.org//13366002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20706 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-30 00:31:47 +00:00
nweiz@google.com
3569854b56 Rename the includeHiddenFiles parameter of listDir.
Review URL: https://codereview.chromium.org//13367002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20705 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-30 00:31:12 +00:00