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
johnniwinther@google.com
74d03a2aeb
Fix small bugs in dartdoc/apidoc.
...
Changed client implementation to use import instead of parts.
Fixed explicit package-root bug in apidoc.
BUG=http://dartbug.com/8162
Review URL: https://codereview.chromium.org//12094076
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17895 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 10:11:17 +00:00
ricow@google.com
b410b64719
Mark pub/oauth2_test as timeout as well as pass,fail
...
Review URL: https://codereview.chromium.org//12086078
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17885 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-31 07:26:23 +00:00
rnystrom@google.com
b0779d1453
Remove invalid sanity check.
...
In the presence of setUp() it is possible for stuff to be scheduled
by the time integration() is called.
Review URL: https://codereview.chromium.org//12090075
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17870 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 19:47:16 +00:00
nweiz@google.com
8be520740e
Roll back Pub stream changes.
...
These changes are still breaking the Windows bots, so I'm rolling them back
until we figure out what's going on.
TBR
Review URL: https://codereview.chromium.org//12095050
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17867 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 19:26:03 +00:00
rnystrom@google.com
f73ee270b7
Fix issue where failing pub tests confused unittest.
...
Review URL: https://codereview.chromium.org//12086052
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17861 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 17:45:50 +00:00
nweiz@google.com
5552aff98b
Fix a use of a StreamController as a Stream.
...
TBR
Review URL: https://codereview.chromium.org//12086055
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17822 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 01:54:52 +00:00
nweiz@google.com
d56994eb18
Use the dart:async Stream API thoroughly in Pub.
...
Review URL: https://codereview.chromium.org//12021008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17821 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-30 01:06:39 +00:00
sigmund@google.com
aeca565ae9
Fix build for throwsStateError: remove duplicate definitions in other tests.
...
Review URL: https://codereview.chromium.org//12088056
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17812 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 21:47:05 +00:00
rnystrom@google.com
63eac3fe8b
Handle parsing the "version" file better.
...
Review URL: https://codereview.chromium.org//12087008
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17740 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-29 00:56:07 +00:00
asiva@google.com
d313a1243f
1. Change option --use_script_snapshot to --use-script-snapshot (easier to type).
...
2. Use dart binary with the --generate-script-snapshot option to generate dart2js snapshot
Review URL: https://codereview.chromium.org//12084010
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17686 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-26 05:47:56 +00:00
jmesserly@google.com
61c97e7325
Restructure YAML package suitable for pub lish
...
After this I can use tools/publish_pkg.py upload script to fix dartbug.com/4126
Review URL: https://codereview.chromium.org//11622011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17685 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-26 02:25:43 +00:00
rnystrom@google.com
079402c3ae
Get rid of RootSource.
...
This was a sort of hackish source only used internally during
version solving. But it causes a couple of subtle bugs because it
never gets registered with the SourceRegistry. That in turn makes
toString() fail on any PackageId with that source since it relies
on the Source being registered.
The simplest fix is to just remove the hacked source and have a
null source in PackageId/Ref mean "root" and handle it specially.
Review URL: https://codereview.chromium.org//12047096
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17646 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 18:22:29 +00:00
amouravski@google.com
e9e57f1209
Removed Disqus comments.
...
https://code.google.com/p/dart/issues/detail?id=6334
Review URL: https://codereview.chromium.org//12038081
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17620 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-25 00:01:21 +00:00
amouravski@google.com
d2a79c9bdd
First half of the new HTML json docs.
...
This half produces the JSON file by going through each of the HTML libraries
and pulling out the @DomName annotations as keys for the map.
This means that even though member names may change, the map still works.
Currently creates a blank json file because I have not hooked up the other half
that puts the docs into the libraries to begin with.
Review URL: https://codereview.chromium.org//12035057
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17610 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 22:53:00 +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
floitsch@google.com
ed938af868
Rename new Uri.fromString to Uri.parse.
...
Review URL: https://codereview.chromium.org//12052038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17562 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 13:26:18 +00:00
floitsch@google.com
fb7b9e3c5c
Rename Date to DateTime.
...
BUG=http://dartbug.com/1424
Review URL: https://codereview.chromium.org//11770004
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17549 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 12:16:37 +00:00
rnystrom@google.com
344249b02f
Get rid of unneeded Future.immediate() calls.
...
Future.then() will now implicitly wrap the callback result in a
future if it isn't one, so this manual wrapping can be removed.
Also take advantage of the fact that Future.immediate() is always
async now and remove some workarounds.
Finally, noticed there were two copies of the git-related code
floating around so killed the old one.
Review URL: https://codereview.chromium.org//12042053
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17519 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-24 01:13:36 +00:00
rnystrom@google.com
7ec5b82507
Make pub use the SDK's "version" file for its version.
...
This includes pub's own version and the implied version of SDK
packages. I also added a little test that verifies that pub can
parse the actual version file generated with the SDK.
BUG=5906,6173,7837
Review URL: https://codereview.chromium.org//12036065
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17512 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 23:20:09 +00:00
rnystrom@google.com
edf7ca2927
Add support for specifying SDK version constraints in pubspecs.
...
These constraints don't currently do anything, but these patch
gets them being parsed by pub.
Review URL: https://codereview.chromium.org//12038038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17477 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-23 17:41:40 +00:00
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
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
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
rnystrom@google.com
d160b37a92
Clean up a few static warnings.
...
Review URL: https://codereview.chromium.org//11867029
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17331 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 23:54:38 +00:00
rnystrom@google.com
4573dcd11d
Create a unit test config for the pub tests that's prettier.
...
In particular, it:
- Shows test results incrementally.
- Cleans up the stack traces.
- Doesn't show the failures and their stack traces twice.
Right now, it's opt in. You need to:
- Add initConfig() to the top of a test suite.
- Pass "--human" when you run the test.
At some point, I can add the initConfig() calls to every test suite but I figured we could just add them manually for now.
Review URL: https://codereview.chromium.org//11867012
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17313 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 21:11:43 +00:00
rnystrom@google.com
97af32b4d3
Make integration tests a bit cleaner.
...
Review URL: https://codereview.chromium.org//11943005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17300 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 18:06:22 +00:00
ager@google.com
842a06c4cb
Remove utils/archive. It is not used at this point.
...
R=nweiz@google.com ,sgjesse@google.com
BUG=
Review URL: https://codereview.chromium.org//12016011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17248 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-18 07:15:27 +00:00
amouravski@google.com
bd8be55838
Remove the old hand-written HTML doc format, which has not worked for months.
...
Personal TODO has been made to extract the useful bits of documentation from
this CL into the new hand-written HTML doc format.
Review URL: https://codereview.chromium.org//11961047
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17231 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 18:54:18 +00:00
amouravski@google.com
af3428430c
Remove CommentMap from all DartDoc code.
...
Review URL: https://codereview.chromium.org//11958023
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17224 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-17 16:55:14 +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
amouravski@google.com
038af964dc
Changed @domName annotation in comment to full fledge @DomName annotation.
...
Review URL: https://codereview.chromium.org//11887006
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17154 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 19:01:07 +00:00
nweiz@google.com
e0867a91d1
Mark pub tests as flaky.
...
BUG=7905,7920
Review URL: https://codereview.chromium.org//11944003
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17107 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-16 00:15:29 +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
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
59cbc77eaf
Increase the step timeout in scheduled pub tests.
...
Also un-mark the uploaders test as flaky.
BUG=7879
Review URL: https://codereview.chromium.org//11881033
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17039 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 00:44:31 +00:00
nweiz@google.com
30d2e78687
Stop working around issue 7781 in Pub.
...
Review URL: https://codereview.chromium.org//11881032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17038 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-15 00:15:23 +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
whesse@google.com
3696154a8e
Default constructor for dart:io Path now handles native Windows paths. Path() now does the same as Path.fromNative(). Path.fromNative() is removed, and all uses of it replaced by Path().
...
BUG=https://code.google.com/p/dart/issues/detail?id=7872
Review URL: https://codereview.chromium.org//11878015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17026 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 19:46:13 +00:00
ricow@google.com
e5b51f0196
Mark pub/pub_uploader_test as flaky.
...
Filed http://dartbug.com/7879
Review URL: https://codereview.chromium.org//11881016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@17010 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-14 07:07:29 +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
nweiz@google.com
4774c5b7cf
Un-mark pub_lish_test as flaky now that socket issues are resolved.
...
BUG=7819
Review URL: https://codereview.chromium.org//11826067
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16944 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 00:06:25 +00:00
nweiz@google.com
9c8eb660d5
Don't die because we write empty arrays to cURL.
...
Review URL: https://codereview.chromium.org//11821062
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16941 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 23:21:41 +00:00
nweiz@google.com
31ff3b949e
Stop working around issue 7790 in pub.
...
Review URL: https://codereview.chromium.org//11778108
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16935 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 21:54:46 +00:00
lrn@google.com
fd8f8fefe6
Fix pub tests.
...
Small tweaks to code.
Review URL: https://codereview.chromium.org//11833032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16910 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 10:42:37 +00:00
ricow@google.com
2f128089e7
Mark pub/pub_lish_test as flaky on linux.
...
This has been flaking a lot recently.
Filed high priority bug 7819
Review URL: https://codereview.chromium.org//11778090
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16902 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 08:23:57 +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
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