Commit Graph

25510 Commits

Author SHA1 Message Date
nweiz@google.com 8fc04ad894 Add the ability to match the contents of a file descriptor against a Matcher.
R=amouravski@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22539 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-09 00:15:57 +00:00
gram@google.com 5c2832bf49 Fix the usage instructions for matcher and mock libraries.
R=sethladd@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22535 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 22:51:08 +00:00
floitsch@google.com 1a2ec73fee Fix dartium that was broken by Completer change.
BUG= http://dartbug.com/10470

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22527 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 19:58:17 +00:00
kevmoo@j832.com b07a7fd229 fix for return type issue in 22524
R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22526 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 19:43:38 +00:00
kevmoo@j832.com d28d86f8dc pkg/serialization types cleanup
Hide a few things, fix return types, make a few things final, etc.

R=alanknight@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22524 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 18:59:40 +00:00
gram@google.com 7dd9c0e223 Added a new matcher for pairwise comparison of iterables with a custom comparator.
R=jmesserly@google.com, sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22519 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-08 18:22:44 +00:00
devoncarew@google.com 4ff03f8308 Update the dartdoc for the interactive unittest config to note debugger compatibility issues.
R=gram@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22483 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 23:18:34 +00:00
scheglov@google.com 2214a97df7 Update status files for 'dartanalyer'.
Small tweak for the Java command line analyzer to actually support --package-root option in batch.

R=devoncarew@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22480 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 21:45:20 +00:00
gram@google.com 29202c4c0c Added color coding to test results in VM config.
https://code.google.com/p/dart/issues/detail?id=10079

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22478 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 21:33:56 +00:00
vsm@google.com f402bff98a Remove tabs from dart.js
My bad...

R=dgrove@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22474 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-07 18:44:45 +00:00
floitsch@google.com eb444edfe9 Update status files.
Review URL: https://codereview.chromium.org//14577012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22437 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-06 18:26:53 +00:00
floitsch@google.com 968ebcff5a Make Completers asynchronous.
BUG= http://dartbug.com/9990
R=ajohnsen@google.com, lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22417 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-06 15:15:15 +00:00
sgjesse@google.com f13b6178e1 Change fromString constructor to parse static method
on HeaderValue and ContentType.

R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22406 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-06 07:30:02 +00:00
scheglov@google.com cd7b530ca5 Fix build: disable CommandLineOptions tests.
TBR

R=pquitslund@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22389 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 20:00:14 +00:00
scheglov@google.com 29a3f86399 Dart-based command-line analyzer.
R=pquitslund@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22385 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 18:34:37 +00:00
vsm@google.com 6800a0e5a9 Workaround for 8455
BUG=8455
R=ahe@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22375 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 16:42:30 +00:00
gram@google.com faac3b4eba Spys with mirrors!
R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22371 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-03 15:43:12 +00:00
ajohnsen@google.com 8fbfc5288d Use 'localhost' instead of '127.0.0.1', as IPv6 connections now can occur.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22245 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 13:24:26 +00:00
sgjesse@google.com c5039cbf42 Fix pub after changing the HttpServer.bind signature
R=ajohnsen@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22234 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 10:14:52 +00:00
ajohnsen@google.com d548955117 Enable parsing of IPv6 form addresse (see rfc2373 and rfc2732).
This also wraps the 'domain' component in toString with [...], if it
contains any ':' characters.

BUG=
R=floitsch@google.com, sgjesse@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22228 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 09:27:50 +00:00
sgjesse@google.com 2fdb878ebe Change the signature for all network bind calls.
All the bind calls on RawServerSocket, ServerSocket,
RawSecureServerSocket, SecureServerSocket and HttpServer (and
bindSecure on HttpServer) now have mandatory address and port
parameters. All the rest of the parameters are named optional
(including backlog).

The address parameter can be an InternetAddress or a String for all
these calls.

R=ajohnsen@google.com, whesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22227 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 09:14:04 +00:00
nweiz@google.com 40d39b2679 Always capture stack traces when running pub tests.
Now that stack_trace lazily parses stacks, this should be fast enough to be
usable.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22217 260f80e4-7a28-3924-810f-c04153c831b5
2013-05-01 00:34:07 +00:00
nweiz@google.com 7523a1df0d Be lazier when capturing stack traces.
It turns out that capturing stack traces is cheap; converting them to strings is
what's so expensive.

R=rnystrom@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22205 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 21:34:08 +00:00
nweiz@google.com efbaba7355 Fix a broken oauth2 test.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22203 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 21:25:04 +00:00
nweiz@google.com 3f7e020ad7 Adding Uri.parse to AuthorizationException
BUG=https://code.google.com/p/dart/issues/detail?id=10050
R=nweiz@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22199 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 21:11:00 +00:00
gram@google.com 8126bad960 Make mock behaviors be ordered.
See https://code.google.com/p/dart/issues/detail?id=8950

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22191 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 18:15:37 +00:00
gram@google.com ff7bfd481e Unit test improvements.
The base config now sets things up so failed expects are routed through it.
A flag controls whether or not an expect failure stops the test (the default)
or if the test keeps pressing on.

Another flag has been added to disable the exception that gets thrown at the 
end of there were errors. The default remains to throw.

Finally, some cleaning up of test failure stacks is done. In particular we 
remove internal unittest frames from the stack.

R=sigmund@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22186 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 17:34:35 +00:00
alanknight@google.com eb24790be3 See if drt flakiness is gone (Issue 9000)
R=efortuna@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22183 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-30 16:57:32 +00:00
alanknight@google.com a6b47e0fad Fix some doc formatting problems, stop using "set" methods for NumberFormat
R=amouravski@google.com, sethladd@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22148 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 20:32:04 +00:00
alanknight@google.com 66fbf314d5 adding missing interfaces to _LazyList
R=alanknight@google.com

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

Patch from Adam Singer <financecoding@gmail.com>.

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22143 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 19:11:31 +00:00
scheglov@google.com dd6dcaf031 New analyzer_experimental snapshot.
R=brianwilkerson@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22134 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 17:55:57 +00:00
sgjesse@google.com 2ef54d314a Add the ability to change the working directory
Directory.current have been changed from a factory constructor to a
getter and setter. The getter returns a Direcotry object holding the
current working directory. The setter changes the current working
directory of the Dart process.

R=whesse@google.com

BUG=https://code.google.com/p/dart/issues/detail?id=6316, https://code.google.com/p/dart/issues/detail?id=8893

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22116 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-29 12:43:53 +00:00
nweiz@google.com c7467cf6b5 Support a subset of String.format in java2dart.
This is enough to get analyzer errors formatting, which is very useful for any
Dart code using analyzer_experimental.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22093 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-26 22:43:18 +00:00
kevmoo@j832.com 1bdb447097 pkg/unittest: GroupContext should be private
not needed by users of unit_test

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22080 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-26 18:21:15 +00:00
gram@google.com 6341741ba6 Added support for solo groups, multiple solo tests, and
skip groups/tests.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22075 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-26 17:34:57 +00:00
alanknight@google.com 2abd6c9b51 Fix for mirror API breaking change to index libraries by URI, and clean up references in doc comments
Review URL: https://codereview.chromium.org//14447008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22040 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 16:49:38 +00:00
kustermann@google.com 90a564a975 Removed flaky marker of a number of tests
Most of these tests have stopped crashing after r21356.

The v8 bug was fixed in v8:r14190. Since r21629 we use v8 revision
v8:r14336 which means that the fix for v8 is now also in our dartium checkouts.

BUG=http://dartbug.com/9407

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22031 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-25 13:52:59 +00:00
gram@google.com c2b4a4e4a9 TBR: Removed const from CustomMatcher constructor. dartc doesn't like it.
Review URL: https://codereview.chromium.org//14336015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21978 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:32:30 +00:00
gram@google.com 05c26aafc3 The matcher argument to the CustomMatcher constructor no longer has to be a matcher; it will be wrapped if not.
Addresses https://code.google.com/p/dart/issues/detail?id=9924

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21975 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 20:19:12 +00:00
kevmoo@j832.com 5b3f73e2a8 pkg/unittest: more cleanup pulled from a defunct CL
Lot's of un-used private methods

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21973 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 19:32:24 +00:00
kevmoo@j832.com fb6ea9481a pkg/unittest: use better async callback function
Review URL: https://codereview.chromium.org//14293015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21968 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 18:26:16 +00:00
alanknight@google.com c9f0368d7d Allow suppressing message extraction warnings, providing a prefix for generated files, and format warnings better.
Review URL: https://codereview.chromium.org//13898014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21959 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 17:03:36 +00:00
dgrove@google.com b2c3ec3d20 Remove version, which allows the version to be updated automatically
when the package is uploaded.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21956 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 16:18:01 +00:00
kustermann@google.com 0cea864629 Only stop HTTP server if it was actually started.
Review URL: https://codereview.chromium.org//14052008

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21939 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 11:32:27 +00:00
ajohnsen@google.com 55963a1a6d Add new InternetAddress class with a static lookup function (including IPv6
results).

Reapply of https://codereview.chromium.org/13880029/ with fixes.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21934 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 09:26:58 +00:00
ajohnsen@google.com 60946b53fc Revert "Add new InternetAddress class with a static lookup function (including IPv6 results)."
Revert "Attempt to fix strict align issue."
Revert "Trying another fix."

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21928 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 08:10:00 +00:00
ajohnsen@google.com 20d1f5ddda Add new InternetAddress class with a static lookup function (including IPv6 results).
Reapply of https://codereview.chromium.org/14083007/ with fixes.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21923 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 07:12:05 +00:00
nweiz@google.com 0ff9830d88 Fix a bug in pathToFileUri.
TBR

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21916 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 01:00:03 +00:00
kevmoo@j832.com 63fb820dda pkg/unittest: Included traces in more places
when the rest returns as a future
when test setup is a future and fails

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21915 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-24 00:58:07 +00:00
nweiz@google.com 18ef5b5d80 Clean up various ways we find paths in pub.
This makes it so that it's never necessary to pass in DART_SDK.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@21914 260f80e4-7a28-3924-810f-c04153c831b5
2013-04-23 23:55:46 +00:00