Commit Graph

1233 Commits

Author SHA1 Message Date
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
nweiz@google.com 16367f141e Work around issue 4928.
Review URL: https://codereview.chromium.org//13293006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20704 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-30 00:10:48 +00:00
nweiz@google.com 1049bd30dc Replace defer() with Future.of in pub.
Review URL: https://codereview.chromium.org//13196007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20703 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-30 00:08:47 +00:00
nweiz@google.com 0c20674dbd Make pub warning-clean.
This also works around issue 9535 in scheduled_test.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20702 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-30 00:07:27 +00:00
nweiz@google.com 5750ce8d71 Make listDir and createSymlink synchronous in pub.
Review URL: https://codereview.chromium.org//13332009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20698 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-29 22:20:22 +00:00
nweiz@google.com f5534bdb3f Increase the default test timeout for scheduled tests on Windows.
Review URL: https://codereview.chromium.org//13327009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20695 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-29 21:47:35 +00:00
rnystrom@google.com aa3fdc3659 Mark flaky test as flaky.
Review URL: https://codereview.chromium.org//13314007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20675 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-29 17:45:57 +00:00
devoncarew@google.com 972ec0b7b0 Minor tweak to the pubspec.lock output to remove the leading whitespace from the file.
"        # Generated by pub. See: http://pub.dartlang.org/doc/glossary.html#lockfile"
"         {"packages":{}}"
        
becomes:

# Generated by pub.
# see http://pub.dartlang.org/doc/glossary.html#lockfile

{"packages":{}}
Review URL: https://codereview.chromium.org//13200003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20655 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 23:10:35 +00:00
nweiz@google.com 70f8c7ab6e Work around issue 9499.
Review URL: https://codereview.chromium.org//13236002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20648 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 21:31:49 +00:00
nweiz@google.com c590e8ae0c Switch pkg packages, pub, and dartdoc to use package: imports.
This also changes the SDK layout by replacing the "pkg" directory, which
contained the full source of all the packages needed by pub and dartdoc, with a
"packages" directory that contains only their lib directories. This directory is
used as the package root for pub and dartdoc when run from the SDK.

BUG=6745

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20640 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-28 20:27:28 +00:00
nweiz@google.com 3697a04750 Add a library for manipulating stack traces.
Review URL: https://codereview.chromium.org//13102003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20582 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 21:15:55 +00:00
nweiz@google.com ac18c8ced8 Work around issue 9278.
Review URL: https://codereview.chromium.org//12907030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20577 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 20:53:25 +00:00
nweiz@google.com d80616fdce Clean up the semantics of io.dart operations w.r.t. symlinks.
fileExists and dirExists will now both return true for symlinks only if those
symlinks are unbroken and point to entries of the appropriate type. entryExists
will return true for any symlink as well, broken or unbroken.

deleteDir and deleteFile have been replaced with a single function, deleteEntry.
This will delete whatever filesystem entry exists at the path specified, whether
it's a file, directory, or symlink (broken or unbroken).

BUG=9454

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20575 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-27 20:37:55 +00:00
rnystrom@google.com 616ab7e943 Handle deleting broken symlinks on Windows.
BUG=https://code.google.com/p/dart/issues/detail?id=9192

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20501 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-26 00:50:23 +00:00
nweiz@google.com 5f052a9796 Work around issue 9360.
BUG=8687

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20406 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 18:49:14 +00:00
nweiz@google.com 8783e780e9 Stop working around issue 6764.
Review URL: https://codereview.chromium.org//12902031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20404 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 18:34:55 +00:00
rnystrom@google.com 7aafe74407 Mark right test as flaky.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20398 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 18:29:59 +00:00
nweiz@google.com c9724a390f Ignore lockfile entries where the source is wrong.
BUG=7262

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20395 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-22 18:12:14 +00:00
nweiz@google.com 5d68e6b5fc Mark pub_update_test as flaky.
BUG=9357

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20357 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-21 22:03:51 +00:00
nweiz@google.com 30afbfd9c0 Provisionally un-flake pub tests.
Now that pub is using scheduled_test, it should at least be clearer what's going
on if these tests start flaking again.

BUG=8511,8868

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20291 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 21:21:06 +00:00
nweiz@google.com cc340dc736 Increase the scheduled_test timeout for Git tests on Windows.
Review URL: https://codereview.chromium.org//12668014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20289 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 21:09:17 +00:00
nweiz@google.com 6cd9cee512 Provisionally stop working around issues 9252 and 9253.
We're removing these workarounds in the hopes that the pub tests won't resume
flaking. If they do, this CL should be rolled back.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20286 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 19:49:05 +00:00
nweiz@google.com 84dd8a51e0 "new Map()" -> "new Map.from()" in pub.
BUG=8511

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20265 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 01:03:23 +00:00
nweiz@google.com db9ff1e404 Use scheduled_test for Pub tests.
This was originally committed as r20250. Due to issue 9294, this failed on
Windows. This commit works around that issue.

BUG=8511

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20264 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-20 00:50:58 +00:00
nweiz@google.com 32db9c0cf6 Revert "Use scheduled_test for Pub tests."
This reverts r20250, which was failing on Windows.

BUG=8511

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20253 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 22:22:55 +00:00
nweiz@google.com 82cbc2db3a Use scheduled_test for Pub tests.
BUG=8511

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20250 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 21:58:53 +00:00
nweiz@google.com 83d896d80b Fix a couple broken tests in pub/validator_test.
These tests were marked as test() rather than integration() and so their
schedules weren't getting run at all.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20238 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 20:37:03 +00:00
nweiz@google.com 8f7295dce7 Work around issue 9252 in scheduled_test and pkg/http.
Review URL: https://codereview.chromium.org//12540010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20187 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-19 00:25:05 +00:00
sgjesse@google.com 49dec76806 Change all File APIs to make the mode and encoding arguments named
R=ager@google.com, ajohnsen@google.com, whesse@google.com, floitsch@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20153 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-18 12:10:32 +00:00
rnystrom@google.com 78a4088f03 Actually make status file do something.
Review URL: https://codereview.chromium.org//12712013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20123 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 23:17:27 +00:00
rnystrom@google.com 5def0d4962 Disable failing test on Windows until I can fix it.
BUG=https://code.google.com/p/dart/issues/detail?id=9192

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20118 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 22:51:16 +00:00
rnystrom@google.com 2f2b30eb0e Handle broken symlinks when creating package dirs.
BUG=https://code.google.com/p/dart/issues/detail?id=8343

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20116 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 22:07:18 +00:00
rnystrom@google.com 4a465ef855 Remove support for SDK dependencies.
BUG=https://code.google.com/p/dart/issues/detail?id=6354

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20098 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 18:33:05 +00:00
floitsch@google.com e57443e0b5 Make argument to StringSink.writeln optional.
BUG= http://dartbug.com/9102

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20081 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 13:59:39 +00:00
floitsch@google.com f85fa4feff Make argument to StringSink.writeln optional.
BUG= http://dartbug.com/9102

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20074 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 12:45:40 +00:00
lrn@google.com 844cd39fad Change getRange to sublist. Make getRange deprecated.
This changes the exception behavior of getRange. It used to accept
a length of zero, no matter what start value. Now the start value
must be a valid list index.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20064 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-15 09:15:39 +00:00
nweiz@google.com f12902dfaf Fix some analyzer warnings in pub.
Review URL: https://codereview.chromium.org//12820009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20057 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 22:39:14 +00:00
nweiz@google.com a9a8d42063 Add a SafeHttpServer shim to work around issue 9140.
Review URL: https://codereview.chromium.org//12633015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@20054 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-14 22:12:19 +00:00
keertip@google.com a455e0d9cd add cache list command to pub
Review URL: https://codereview.chromium.org//12755024

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19977 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 22:29:00 +00:00
scheglov@google.com 139e02c68e Rename analyzer-experimental to analyzer_experimental.
https://code.google.com/p/dart/issues/detail?id=9071

R=pquitslund@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@19973 260f80e4-7a28-3924-810f-c04153c831b5
2013-03-13 21:42:01 +00:00