rnystrom@google.com
952230068c
Don't pollute repo with temp dirs for pub tests.
...
Review URL: https://chromiumcodereview.appspot.com//10825422
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10997 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-20 20:02:36 +00:00
rnystrom@google.com
180df4ec25
Look for SDK packages in "pkg" in addition to "lib".
...
Review URL: https://chromiumcodereview.appspot.com//10857059
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10912 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 18:04:42 +00:00
scheglov@google.com
ca5e0d567c
Issue 4553. Any constant is valid for 'case'.
...
Also check for 'operator =='.
R=brianwilkerson@google.com
BUG=
Review URL: https://chromiumcodereview.appspot.com//10829365
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10899 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-17 14:28:48 +00:00
regis@google.com
d9b0276a4c
Require two type arguments for map literals (issue 4522).
...
Spec has been changed back.
VM temporarily accepts a single type argument and emits a warning.
Update tests, dart2js source, dartdoc, etc...
Disable failing co19 tests (issue 175 filed).
Review URL: https://chromiumcodereview.appspot.com//10854191
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10861 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-16 20:44:32 +00:00
nweiz@google.com
30dc5566d8
Reverting 10779
...
Review URL: https://chromiumcodereview.appspot.com//10825375
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10781 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 23:32:43 +00:00
nweiz@google.com
8b8f1af9dc
Allow pub install and pub update to update dependers.
...
If the pubspec has a new dependency which causes an incompatibility with the
locked packages' version constraints, `pub install` will now unlock packages
one by one until a compatible version graph can be found.
`pub update <package>` will now always update the given package to its latest
version, even if that requires updating locked packages that depend on it
transitively. If no amount of updating will make the latest version valid, an
exception will be thrown.
Review URL: https://chromiumcodereview.appspot.com//10854152
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10779 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-15 23:24:24 +00:00
dgrove@google.com
c265902bea
Move unittest from lib to pkg.
...
Review URL: https://chromiumcodereview.appspot.com//10836241
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10685 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 22:36:59 +00:00
nweiz@google.com
ef953a51be
Actually enable the pub update tests.
...
Review URL: https://chromiumcodereview.appspot.com//10825142
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10669 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-14 19:26:16 +00:00
antonm@google.com
beda26dd25
Adjust suppressions.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10827303
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10592 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-13 18:13:32 +00:00
rnystrom@google.com
0bc9b19740
Rename BadNumberFormatException -> FormatException.
...
Review URL: https://chromiumcodereview.appspot.com//10850034
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10354 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 20:56:59 +00:00
gram@google.com
2edb59744d
Remove use of deprecated test functions.
...
Review URL: https://chromiumcodereview.appspot.com//10828139
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10238 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-03 16:51:21 +00:00
rnystrom@google.com
a4c11b47d7
Get basic Windows stuff working.
...
Enable pub tests that do appear to currently pass on Windows.
Review URL: https://chromiumcodereview.appspot.com//10824095
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10100 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 23:54:10 +00:00
gram@google.com
27846b0846
Improved the way we generate mismatch descriptions.
...
matches() methods can now return additional state that is used by describeMismatch(). This adds a small tax to the happy path, but makes the unhappy path quite a bit more efficient as well as providing better error messages.
Related to this, expect() can now be passed a verbose flag. Currently this is used by throwsA/returnsNormally to provide stack traces from the actual exception but could be used for other things too.
The tests for the Mock classes have been changed to be normal tests, not 'meta' tests.
A couple of other minor fixes.
Review URL: https://chromiumcodereview.appspot.com//10832058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10078 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 18:12:49 +00:00
antonm@google.com
daf8046461
Better filtering of dart:* libs.
...
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10834049
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9977 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-27 14:09:56 +00:00
antonm@google.com
83cecd8b0d
Triage dart2dart pub failures.
...
Most of the tests are not supposed to pass. YAML requires additional investigation.
R=smok@google.com
Review URL: https://chromiumcodereview.appspot.com//10823053
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9975 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-27 12:29:45 +00:00
nweiz@google.com
ae7c34c537
Make "pub update PACKAGE" update a specific package.
...
Review URL: https://chromiumcodereview.appspot.com//10809058
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9899 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 18:23:18 +00:00
antonm@google.com
74d17a16f9
dart2dart compiler support.
...
R=whesse@google.com
Review URL: https://chromiumcodereview.appspot.com//10809069
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9880 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 11:20:41 +00:00
nweiz@google.com
d4ef73e116
Make "pub update" update all packages.
...
Review URL: https://chromiumcodereview.appspot.com//10809057
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9825 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-23 20:13:33 +00:00
nweiz@google.com
7b72bd1b8d
Use a lockfile to persist Pub's installed version constellation.
...
This fixes a race condition in r9767 caused by issue 4155.
Review URL: https://chromiumcodereview.appspot.com//10790079
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9824 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-23 19:36:22 +00:00
nweiz@google.com
20b75854d1
Reverting 9767.
...
Review URL: https://chromiumcodereview.appspot.com//10803042
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9768 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 19:44:30 +00:00
nweiz@google.com
915c6be38b
Use a lockfile to persist Pub's installed version constellation.
...
Review URL: https://chromiumcodereview.appspot.com//10796021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9767 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 19:37:09 +00:00
nweiz@google.com
0db73f5236
Add a "help" command to Pub.
...
Review URL: https://chromiumcodereview.appspot.com//10805017
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9765 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 18:10:39 +00:00
nweiz@google.com
38add2cf87
Allow the Git source to depend on a specific revision.
...
Review URL: https://chromiumcodereview.appspot.com//10790021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9693 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-17 02:36:06 +00:00
nweiz@google.com
b4f3327e2b
pub: treat a pubspec with just comments as empty
...
BUG= http://dartbug.com/3483
TEST=
Review URL: https://chromiumcodereview.appspot.com//10534081
Patch from Kevin Moore <kevmoo@j832.com >.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9686 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 22:44:43 +00:00
regis@google.com
b86a40f48f
Fix type checking of void type.
...
Fix library and tests accordingly.
Add new test.
Disable new test for dart2js.
Disable some now failing co19 tests (new issue 158 filed).
Hide internal VM String types from user (not complete).
Review URL: https://chromiumcodereview.appspot.com//10787021
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9681 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-16 21:34:07 +00:00
nweiz@google.com
223195ba79
Use environment variables to find the Dart SDK and the Pub cache directory.
...
Review URL: https://chromiumcodereview.appspot.com//10689169
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9615 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 21:44:17 +00:00
nweiz@google.com
2c2583e304
Hook in the version solver to pub install.
...
Review URL: https://chromiumcodereview.appspot.com//10704172
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9604 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 18:47:31 +00:00
nweiz@google.com
a6466ffe20
Make VersionSolver actually return PackageIds.
...
Review URL: https://chromiumcodereview.appspot.com//10701146
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9574 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 22:57:44 +00:00
nweiz@google.com
b2ee421a78
Add support to the version solver for sources that only have a single version per package.
...
Review URL: https://chromiumcodereview.appspot.com//10690127
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9567 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 19:14:35 +00:00
nweiz@google.com
97269ad9ac
Make the Git source install to the system cache.
...
This is the same change as r9527, except it doesn't use the --progress flag
which is unsupported on the buildbot.
Review URL: https://chromiumcodereview.appspot.com//10694119
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9540 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-11 00:37:27 +00:00
nweiz@google.com
5b3f06ec6f
Reverting 9527
...
Review URL: https://chromiumcodereview.appspot.com//10695132
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9531 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 21:59:27 +00:00
nweiz@google.com
2927ef893c
Make the Git source install to the system cache.
...
Review URL: https://chromiumcodereview.appspot.com//10736015
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9527 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 21:33:01 +00:00
nweiz@google.com
42fe721087
Add a --trace flag to make Pub print a stack trace on error.
...
Review URL: https://chromiumcodereview.appspot.com//10752013
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9491 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 23:38:21 +00:00
nweiz@google.com
cefb44c63e
Have Pub make use of the arg parser.
...
Also allow non-negatable flags in the arg parser.
Review URL: https://chromiumcodereview.appspot.com//10756011
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9488 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 22:13:24 +00:00
nweiz@google.com
4957d72677
Allow asynchronous tests to explicitly register exceptions along with stack traces.
...
Review URL: https://chromiumcodereview.appspot.com//10766005
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9487 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-09 22:10:13 +00:00
nweiz@google.com
deda5a01fa
Add numerous features to the Pub test infrastructure.
...
Review URL: https://chromiumcodereview.appspot.com//10699068
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9368 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-03 18:04:47 +00:00
nweiz@google.com
8f53bf75f9
Make VersionSolver source- and description-aware.
...
Review URL: https://chromiumcodereview.appspot.com//10690032
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9260 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-29 19:36:05 +00:00
nweiz@google.com
9d0be9e342
Don't try to look up the root package in the default source.
...
Review URL: https://chromiumcodereview.appspot.com//10674007
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9184 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-27 18:14:59 +00:00
nweiz@google.com
5a6998d14e
Add a Pub source for pub.dartlang.org.
...
This fixes a race condition in commit 9094.
Review URL: https://chromiumcodereview.appspot.com//10636045
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9132 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-26 20:01:30 +00:00
nweiz@google.com
d13116a711
Reverting 9094
...
Review URL: https://chromiumcodereview.appspot.com//10666042
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9097 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 23:54:43 +00:00
nweiz@google.com
7af3fdfdfa
Add a Pub source for pub.dartlang.org.
...
This fixes a couple typos in commit 9090.
Review URL: https://chromiumcodereview.appspot.com//10658025
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9094 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 23:45:21 +00:00
nweiz@google.com
3a5c7b9dcc
Reverting 9090
...
Review URL: https://chromiumcodereview.appspot.com//10659019
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9093 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 23:23:39 +00:00
nweiz@google.com
fffc9979fe
Add a Pub source for pub.dartlang.org.
...
Review URL: https://chromiumcodereview.appspot.com//10628016
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9090 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-25 22:52:32 +00:00
rnystrom@google.com
745ac9e752
Update pub.status file to fix build.
...
Review URL: https://chromiumcodereview.appspot.com//10642002
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8990 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 16:48:21 +00:00
iposva@google.com
0fd25118b9
- Move the Timer interface to the dart:isolate library so that it
...
is accessible from both client and standalone program.
- Enable a way for the embedder to provide the implementation of
the Timer interface.
- Update tests.
Review URL: https://chromiumcodereview.appspot.com//10532123
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8987 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 16:17:21 +00:00
rnystrom@google.com
bfe7935124
First pass at version constraint solver.
...
It does:
- Walk dependency graphs.
- Unify shared constraints.
- Go through Source to get dependency and version information.
- Handle the fact that everything is async.
- Find best versions that match all constraints.
- Error out if it can't find a match or gets stuck in a loop.
- Have an OK amount of tests.
It does not:
- Handle dependencies from different sources.
- Integrate with the rest of pub.
- Implement an actual "pub update" command.
- Do very much to minimize server traffic.
(Though it does cache pubspecs it has requested.)
Review URL: https://chromiumcodereview.appspot.com//10540151
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8985 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-21 15:50:57 +00:00
scheglov@google.com
c88461077a
Issue 3528. Additional checks for 'case expressions'
...
http://code.google.com/p/dart/issues/detail?id=3528
R=brianwilkerson@google.com
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com//10540114
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8573 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-12 20:21:34 +00:00
rnystrom@google.com
9636d43bf4
"pubspec" -> "pubspec.yaml".
...
Review URL: https://chromiumcodereview.appspot.com//10544041
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8405 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-07 18:32:16 +00:00
rnystrom@google.com
c7c597108e
Update pub to new expect API.
...
Review URL: https://chromiumcodereview.appspot.com//10541039
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8367 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 22:41:58 +00:00
rnystrom@google.com
76b5e0ab98
Skip lock file pub tests on all but the VM.
...
Review URL: https://chromiumcodereview.appspot.com//10536038
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@8364 260f80e4-7a28-3924-810f-c04153c831b5
2012-06-06 21:13:24 +00:00