rnystrom@google.com
f053f356ee
Clean up code that locates SDK and SDK version.
...
This is prep work for SDK constraints. It moves the SDK
version-related code out of SdkSource (which will go away at some
point) into its own library.
I also removed the need for the DART_SDK env variable. It will
still be used if set (which the tests need), but if not set, Pub
will locate the SDK.
Clean up a few static warnings.
Review URL: https://codereview.chromium.org//11871028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17433 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 23:52:37 +00:00
efortuna@google.com
5087eedf93
Adjust pkg status for analyzer-experimental tests.
...
BUG=
Review URL: https://codereview.chromium.org//12036036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17419 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 20:38:15 +00:00
pquitslund@google.com
2ff0092e2a
Package re-name in quest for build greenness.
...
Review URL: https://codereview.chromium.org//12035030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17418 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 19:23:42 +00:00
pquitslund@google.com
75aa743c9a
SVN cleanup (unversioning mis-versioned files).
...
Review URL: https://codereview.chromium.org//12038024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17415 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 18:54:43 +00:00
pquitslund@google.com
d08fa1edcd
Experimental analyzer front-end baby-steps.
...
Notably:
* basic package layout,
* commandline parsing, and
* a few tests
Much more to come! :)
Review URL: https://codereview.chromium.org//11938028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17414 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 18:37:04 +00:00
hausner@google.com
a885f8638b
Fix map literals from change 17410
...
Remove any type arguments from map literals
that had one type argument before change 17410.
Review URL: https://codereview.chromium.org//12045024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17412 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 17:31:29 +00:00
hausner@google.com
dc3bf6646a
Stop supporting map literals with 1 type argument
...
To be checked in next week Tue (Jan 22)
Review URL: https://codereview.chromium.org//12021022
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17410 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 16:48:00 +00:00
lrn@google.com
16795f22d1
Add List.reversed to give a reverse fixed-length view of a list.
...
Review URL: https://codereview.chromium.org//11896013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17402 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-22 14:56:45 +00:00
floitsch@google.com
1febeb689a
Move some core classes to collection library.
...
Review URL: https://codereview.chromium.org//11867024
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17352 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-21 13:34:02 +00:00
lrn@google.com
0e934a631e
Add methods to Collection.
...
Methods are:
- void add(E)
- void addAll(Iterable<E>)
- void remove(Object)
- void removeAll(Iterable)
- void retainAll(Iterable)
- void removeMatching(bool test(E))
- void retainMatching(bool test(E))
They have been implemented for List and Set only.
Default implementations of removeX methods in Collections assume an efficient
remove method, which Lists won't have.
Review URL: https://codereview.chromium.org//11931034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17257 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 10:13:51 +00:00
nweiz@google.com
03244ffee1
Stop treating StreamController as a Stream.
...
Apparently StreamController will soon stop extending Stream, so this gets rid of
all uses of it as a Stream in pkg/http and pub.
Review URL: https://codereview.chromium.org//11975017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17163 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 21:35:45 +00:00
alanknight@google.com
ddd106b523
[ak] Fixed
...
Review URL: https://codereview.chromium.org//11889039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17152 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 18:21:34 +00:00
nweiz@google.com
013b0104f5
Add an ErrorGroup class to Pub.
...
Review URL: https://codereview.chromium.org//11941003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17106 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 00:12:30 +00:00
alanknight@google.com
ae8178bb6b
Standalone locale test still failing on Windows, restore status file
...
Review URL: https://codereview.chromium.org//11936003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17096 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 21:47:37 +00:00
alanknight@google.com
27541ed0fb
Fix tests to accept short locale names as long as long ones, properly this time.
...
Review URL: https://codereview.chromium.org//11895005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17091 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 20:47:45 +00:00
alanknight@google.com
7a42378b21
[ak] Fix tests to accept short locale names as well as long ones
...
BUG=
Review URL: https://codereview.chromium.org//11878030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17090 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 20:39:22 +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
nweiz@google.com
0109fd9664
No longer work around issue 7761.
...
This also moves Pub's modified _OutputStreamConsumer class into pkg/http.
Review URL: https://codereview.chromium.org//11881030
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17034 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 23:30:00 +00:00
dgrove@google.com
8ff8590cd3
Add homepage to pubspec.yaml .
...
Review URL: https://codereview.chromium.org//11534021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17029 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 20:27:15 +00:00
efortuna@google.com
4622dc3e76
Make browser tests all run from a server instead of the local filesystem.
...
BUG=
Review URL: https://codereview.chromium.org//11810004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17007 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-13 01:11:07 +00:00
efortuna@google.com
de347e5b4d
Fix minor path handling issue in path package.
...
BUG=
Review URL: https://codereview.chromium.org//11876012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17006 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-12 23:43:44 +00:00
sigmund@google.com
fb052dd67c
Improve compact and default configuration
...
BUG=
Review URL: https://codereview.chromium.org//11887005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17004 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-12 00:47:40 +00:00
sigmund@google.com
603f5b678e
Add again useVmConfiguration for deprecation purposes. This requires adding a
...
reference to the meta package fixing publish_pkg to rewrite imports correctly.
Review URL: https://codereview.chromium.org//11819051
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16991 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:35:34 +00:00
alanknight@google.com
b3b4c02a96
Make output formats pluggable, adapt to new libraries
...
Review URL: https://codereview.chromium.org//11820032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16989 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:17:14 +00:00
rnystrom@google.com
2394891f64
Add command support to args.
...
Review URL: https://codereview.chromium.org//11819068
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16988 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:03:21 +00:00
sigmund@google.com
14dcd604b7
Make 'useXConfiguration' check for an existing configuration. This is so that it
...
is possible to compose tests:
testa() => useVmConfig();
testb() => useVmConfig(); testa();
This is now important because we moved some of the configuration state to
onInit, so by the time the second configure is called, the initialization might
have already been done.
An alternative would be to only allow to call configure once. Thoughts?
Review URL: https://codereview.chromium.org//11862002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16981 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 19:05:28 +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
alanknight@google.com
f3bd62d72a
Fix flakiness in intl_message_basic_example_test (7730)
...
Review URL: https://codereview.chromium.org//11818034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16930 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 18:23:33 +00:00
sigmund@google.com
8366691d1a
Revert changes to _postMessage in r16899
...
Review URL: https://codereview.chromium.org//11833038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16925 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 16:37:09 +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
sigmund@google.com
7259a9df79
This change does a couple fixes to configurations:
...
- it renames '_postMessage' so that it can be overriden by configurations that don't need it.
- it splits the onDone callback in two: onSummary - a callback with all the results, and onDone - a callback with just the end result. The idea is that onSummary is mostly dedicated to reporting results, while onDone is about notifying that unittest is done. This split is very useful for subclasses that only want to override onSummary or onDone.
Review URL: https://codereview.chromium.org//11829045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16899 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 03:42:08 +00:00
sigmund@google.com
8578b61578
Move compact vm config from web_ui to the unittest package.
...
Review URL: https://codereview.chromium.org//11824049
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16894 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 00:17:09 +00:00
sigmund@google.com
d0b9bd68bf
More fixes to unittest
...
Review URL: https://codereview.chromium.org//11821039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16892 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 23:26:07 +00:00
nweiz@google.com
fcff2fb2d9
Fix ALL the pub tests.
...
Review URL: https://codereview.chromium.org//11830017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16888 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 21:37:40 +00:00
rnystrom@google.com
a3dfac3b6f
Disable new args test suites on dart2js.
...
Review URL: https://codereview.chromium.org//11829035
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16886 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 21:17:19 +00:00
rnystrom@google.com
2dd41b5c83
Split the args tests into a couple of smaller suites.
...
Review URL: https://codereview.chromium.org//11817027
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16882 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 21:02:21 +00:00
ager@google.com
39c59cdfb3
Update status file with locale test that fails with at least Russian and Danish locale on Windows.
...
R=ricow@google.com ,alanknight@google.com
BUG=
Review URL: https://codereview.chromium.org//11829019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16844 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 10:11:45 +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
nweiz@google.com
5741f611ba
Update pkg/http to use the new async APIs.
...
Review URL: https://codereview.chromium.org//11825010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16834 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 03:10:42 +00:00
nweiz@google.com
7cf1400969
Fix the OAuth2 documentation to use then rather than chain/transform.
...
Review URL: https://codereview.chromium.org//11826010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16828 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 00:18:13 +00:00
alanknight@google.com
e638606f81
Fix bug 7763, use of reserved word as identifier in serialization tests
...
Review URL: https://codereview.chromium.org//11791053
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16823 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 22:44:56 +00:00
rnystrom@google.com
00ec190d79
Take Nathan's patch: https://codereview.chromium.org/11794041/ .
...
Review URL: https://codereview.chromium.org//11809003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16814 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 18:47:09 +00:00
vsm@google.com
8eacd88652
Create an sdk package to host dart.js
...
Devon: I think we'd need corresponding editor changes. The editor could use either pub or just replace the path (as mentioned in the bug).
BUG=6723
Review URL: https://codereview.chromium.org//11774006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16812 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 18:35:22 +00:00
efortuna@google.com
22cf3808b8
Missed two files that needed dart:async import.
...
BUG=
Review URL: https://codereview.chromium.org//11785036
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16779 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 02:24:23 +00:00
efortuna@google.com
01421cc23d
Fix up test statuses. Browser tests should now all pass.
...
BUG=
Review URL: https://codereview.chromium.org//11784032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16777 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 01:49:14 +00:00
rnystrom@google.com
021b6438c5
Commit Martin's patch for pub + lib_v2.
...
Pub is still all kinds of broken with this, but it's slightly
less broken. Some tests pass, and at least the code *parses*
after this.
Review URL: https://codereview.chromium.org//11785028
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16763 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 23:11:55 +00:00
sigmund@google.com
f113cbe75f
Fix htmlconfig
...
Review URL: https://codereview.chromium.org//11773032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16758 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 22:38:17 +00:00
sigmund@google.com
940492e96d
Fixing unittest: ensure 'wait-until-done' is posted before we reach the end of
...
main.
Review URL: https://codereview.chromium.org//11785026
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16752 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 21:42:33 +00:00