Commit Graph

1458 Commits

Author SHA1 Message Date
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
nweiz@google.com a0020f326f Check in the archive used for testing the libarchive reader.
Review URL: https://chromiumcodereview.appspot.com//10826179

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10348 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 19:04:31 +00:00
nweiz@google.com 114137d29a Add ArchiveInputStream.readAll.
Review URL: https://chromiumcodereview.appspot.com//10830191

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10325 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-07 00:57:22 +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
nweiz@google.com 2f9fd6e6bd Attach the native entry struct to the ArchiveEntry object.
This allows the entry properties to be set by the user.

Review URL: https://chromiumcodereview.appspot.com//10832116

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10202 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 22:50:24 +00:00
sethladd@google.com 773c068010 show current version used for api docs
BUG=

Review URL: https://chromiumcodereview.appspot.com//10850029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10201 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 22:34:05 +00:00
sethladd@google.com 3882b4172c use continuous as build name
BUG=

Review URL: https://chromiumcodereview.appspot.com//10829148

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10196 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 20:21:10 +00:00
sethladd@google.com 11575e1a64 remove old tip util
BUG=

Review URL: https://chromiumcodereview.appspot.com//10824150

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10187 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 18:11:41 +00:00
rnystrom@google.com 4eed14aa17 Get symlinks working in pub on Windows.
Review URL: https://chromiumcodereview.appspot.com//10825158

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10183 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-02 17:27:25 +00:00
nweiz@google.com 61ff55fced Free the C memory for ArchiveInputStream when the stream is garbage collected.
Review URL: https://chromiumcodereview.appspot.com//10825139

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10149 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 23:58:56 +00:00
nweiz@google.com 9833418db1 Add the beginnings of a Dart wrapper for libarchive.
Currently this only supports reading archives.

Review URL: https://chromiumcodereview.appspot.com//10842002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10138 260f80e4-7a28-3924-810f-c04153c831b5
2012-08-01 20:19:07 +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
efortuna@google.com 86ad5d3d50 Fix slash direction on Windows.
Review URL: https://chromiumcodereview.appspot.com//10831093

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10079 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 18:13:39 +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
efortuna@google.com 61da51179b Account for spaces in Windows path names.
Review URL: https://chromiumcodereview.appspot.com//10841002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@10033 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-31 01:50:08 +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
efortuna@google.com 9d9f73e535 Print out browser version number also for Windows bots.
Review URL: https://chromiumcodereview.appspot.com//10827028

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9924 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-26 00:54:34 +00:00
sethladd@google.com 9d5ef8017c serve api docs from cloud storage
BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//10831002

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9908 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 21:05:44 +00:00
nweiz@google.com 812b305657 Fix an isEmpty call.
Review URL: https://chromiumcodereview.appspot.com//10821021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9900 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 18:25:11 +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
efortuna@google.com ed03d58b28 Remove extra paren.
TBR=sigmund@google.com
Review URL: https://chromiumcodereview.appspot.com//10820015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9897 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 17:43:05 +00:00
efortuna@google.com 688f76c6f6 Reapply r9440 (reverted in in 9450) with fix for Windows.
Review URL: https://chromiumcodereview.appspot.com//10833008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9896 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-25 17:38:28 +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
johnniwinther@google.com c6d70857e4 Several new features and improvements for dartdoc.
* Dartdoc now works on multiple libraries and entrypoints.
* A dartdoc/dartdoc.bat script is generated into dart-sdk/bin
* The API libraries recognized by dart2js using the 'dart:' prefix
  have been updated to use the 'dart:*' name in their library tags.
  This makes the libraries show up with the correct prefix in the API docs.
* The processed libraries can be selected or limited, API
  libraries are not processed by default, and links to api.dartlang.org
  can be generated for API libraries.

  Because of the changed library tags on API libraries, the generated
  links don't current match the addresses on api.dartlang.org.
  For instance, the docs for Object is currently located in
  api.dartlang.org/core/Object.html, but with the new library
  tag 'dart:core', the address will be api.dartlang.org/dart_core/Object.html.
  The links will thus not work until api.dartlang.org have been updated with
  this patch.
* Code and pre blocks use overflow-x:auto to support wide lines.

BUG=2656,2686,3533,4029,4145,3555

Review URL: https://chromiumcodereview.appspot.com//10809035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9843 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-24 09:16:33 +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
johnniwinther@google.com 50f9d4ff31 Dartdoc and apidoc updated to use Path.
Review URL: https://chromiumcodereview.appspot.com//10780030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9759 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 14:15:16 +00:00
johnniwinther@google.com 1dda757cf0 Parameters with function types supported + Added features in mirrors implementation
VariableListElement.computeType now handles function types.
Default value and function typed parameters supported in the mirror system.

Review URL: https://chromiumcodereview.appspot.com//10779010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9756 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-19 13:17:10 +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
johnniwinther@google.com fdbabb995e Dartdoc and Apidoc updated to use dart2js through the mirror system.
BUG=3414

Review URL: https://chromiumcodereview.appspot.com//10701091

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9584 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-12 08:52:19 +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 a818022964 Refactor Source to take the system cache as a parameter.
Review URL: https://chromiumcodereview.appspot.com//10749014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9519 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-10 18:14:05 +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
efortuna@google.com 2c23c203d1 Revert r9440. Turned the web-chrome-win7 bot red but I can't log
in to investigate.
TBR=kasperl
Review URL: https://chromiumcodereview.appspot.com//10735017

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9450 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 21:25:57 +00:00
efortuna@google.com 967429f75c Print out browser version for the autoupdating browsers (ff and chrome) on
buildbot trace.
Review URL: https://chromiumcodereview.appspot.com//10703105

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9440 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-06 13:03:30 +00:00
efortuna@google.com fa16d7dd73 Have a "fast" ie-windows bot and a slower ie-windows bot.
Review URL: https://chromiumcodereview.appspot.com//10700113

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@9418 260f80e4-7a28-3924-810f-c04153c831b5
2012-07-05 12:02:07 +00:00