Commit Graph

35087 Commits

Author SHA1 Message Date
alanknight@google.com b3b4c02a96 Make output formats pluggable, adapt to new libraries
Review URL: https://codereview.chromium.org//11820032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16989 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:17:14 +00:00
rnystrom@google.com 2394891f64 Add command support to args.
Review URL: https://codereview.chromium.org//11819068

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16988 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 22:03:21 +00:00
sigmund@google.com 14dcd604b7 Make 'useXConfiguration' check for an existing configuration. This is so that it
is possible to compose tests:
testa() => useVmConfig();
testb() => useVmConfig(); testa();

This is now important because we moved some of the configuration state to
onInit, so by the time the second configure is called, the initialization might
have already been done.

An alternative would be to only allow to call configure once. Thoughts?

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16981 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 19:05:28 +00:00
ngeoffray@google.com 34a0db05e2 Update status file for jsshell.
Review URL: https://codereview.chromium.org//11862009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16970 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 13:33:31 +00:00
ngeoffray@google.com 184a9f610a Support Timer with 0 millisecond delay in dart2js running in the command line.
Review URL: https://codereview.chromium.org//11866003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16968 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-11 13:02:58 +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
alanknight@google.com f3bd62d72a Fix flakiness in intl_message_basic_example_test (7730)
Review URL: https://codereview.chromium.org//11818034

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16930 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 18:23:33 +00:00
sigmund@google.com 8366691d1a Revert changes to _postMessage in r16899
Review URL: https://codereview.chromium.org//11833038

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16925 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 16:37:09 +00:00
kustermann@google.com 96574ee329 Status file updates for jsshell
Review URL: https://codereview.chromium.org//11833035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16920 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 14:16:37 +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
sigmund@google.com 8578b61578 Move compact vm config from web_ui to the unittest package.
Review URL: https://codereview.chromium.org//11824049

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16894 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-10 00:17:09 +00:00
sigmund@google.com d0b9bd68bf More fixes to unittest
Review URL: https://codereview.chromium.org//11821039

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16892 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 23:26:07 +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
rnystrom@google.com a3dfac3b6f Disable new args test suites on dart2js.
Review URL: https://codereview.chromium.org//11829035

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16886 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 21:17:19 +00:00
rnystrom@google.com 2dd41b5c83 Split the args tests into a couple of smaller suites.
Review URL: https://codereview.chromium.org//11817027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16882 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 21:02:21 +00:00
ager@google.com 39c59cdfb3 Update status file with locale test that fails with at least Russian and Danish locale on Windows.
R=ricow@google.com,alanknight@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16844 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 10:11:45 +00:00
ager@google.com 75c8f427cc Update remaining usages of Completer.completeException.
R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16840 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 09:29:39 +00:00
nweiz@google.com 5741f611ba Update pkg/http to use the new async APIs.
Review URL: https://codereview.chromium.org//11825010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16834 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 03:10:42 +00:00
nweiz@google.com 7cf1400969 Fix the OAuth2 documentation to use then rather than chain/transform.
Review URL: https://codereview.chromium.org//11826010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16828 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-09 00:18:13 +00:00
alanknight@google.com e638606f81 Fix bug 7763, use of reserved word as identifier in serialization tests
Review URL: https://codereview.chromium.org//11791053

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16823 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 22:44:56 +00:00
rnystrom@google.com 00ec190d79 Take Nathan's patch: https://codereview.chromium.org/11794041/.
Review URL: https://codereview.chromium.org//11809003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16814 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 18:47:09 +00:00
vsm@google.com 8eacd88652 Create an sdk package to host dart.js
Devon: I think we'd need corresponding editor changes.  The editor could use either pub or just replace the path (as mentioned in the bug).

BUG=6723

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16812 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 18:35:22 +00:00
efortuna@google.com 22cf3808b8 Missed two files that needed dart:async import.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16779 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 02:24:23 +00:00
efortuna@google.com 01421cc23d Fix up test statuses. Browser tests should now all pass.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16777 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-08 01:49:14 +00:00
rnystrom@google.com 021b6438c5 Commit Martin's patch for pub + lib_v2.
Pub is still all kinds of broken with this, but it's slightly
less broken. Some tests pass, and at least the code *parses*
after this.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16763 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 23:11:55 +00:00
sigmund@google.com f113cbe75f Fix htmlconfig
Review URL: https://codereview.chromium.org//11773032

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16758 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 22:38:17 +00:00
sigmund@google.com 940492e96d Fixing unittest: ensure 'wait-until-done' is posted before we reach the end of
main.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16752 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 21:42:33 +00:00
sigmund@google.com f07e343607 Some minor small fixes to unittest
Review URL: https://codereview.chromium.org//11791031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16749 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 20:51:01 +00:00
floitsch@google.com 2bf136b372 Update status file for drt.
Review URL: https://codereview.chromium.org//11791029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16742 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 19:54:49 +00:00
sgjesse@google.com feda65bcc4 Update tests for pkg/http for new library
R=ager@google.com

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16703 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 14:52:12 +00:00
karlklose@google.com 126820a65f Mark tests that use Timer as failing on dart2js.
There is no implementation for Timer in JavaScript.

R=floitsch@google.com
BUG=dartbug.com/7728

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16697 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 13:39:09 +00:00
ager@google.com 0836e40506 Mark intl test as failing.
R=floitsch@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16696 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 13:35:57 +00:00
ager@google.com 37e711d665 Fix use of chain in intl library.
R=sgjesse@google.com
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16691 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 12:22:07 +00:00
ajohnsen@google.com 32eeecd930 Fix tests for VM in checked mode.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16689 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:59:49 +00:00
floitsch@google.com 4a7dfd2da3 Big merge from experimental to bleeding edge.
Review URL: https://codereview.chromium.org//11783009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16687 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-07 11:23:16 +00:00
efortuna@google.com 274ac61643 Reverting everything because package root + dartium is causing serious problems.
DART_PACKAGE_ROOT environment variable is set for drt, but not dartium, and is location is problematic with respect to serving the files in the dartium checkout.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16678 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-05 05:20:06 +00:00
efortuna@google.com 1d3b0c4b3b Add cross-origin test with credentials. I modified the test framework slightly
as well to Enable Cross-origin requests while testing from local files.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16671 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-05 02:43:31 +00:00
rnystrom@google.com ac04fc6c18 Convert pkg/http to use "package:" imports.
Review URL: https://codereview.chromium.org//11746009

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16620 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-04 00:10:47 +00:00
rnystrom@google.com 2c5342c62d Update pkg/path to use "package:" imports.
Review URL: https://codereview.chromium.org//11734010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16619 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-03 23:25:33 +00:00
rnystrom@google.com e481bdca9a Convert pkg/serialization imports to "package:".
Review URL: https://codereview.chromium.org//11734012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16613 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-03 21:37:14 +00:00
alanknight@google.com 9d2a6174b0 Make uninitialized Intl test not import dart:io
Review URL: https://codereview.chromium.org//11746005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16586 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-02 20:53:22 +00:00
alanknight@google.com 10919626d2 Document date format initialization better and make it possible to use en_US dates without it
dartbug.com/6567
Review URL: https://codereview.chromium.org//11669013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16582 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-02 18:17:48 +00:00
alanknight@google.com 7602684d20 Fix documentation bugs 7517 and 7518 in serialization.
Review URL: https://codereview.chromium.org//11624031

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16581 260f80e4-7a28-3924-810f-c04153c831b5
2013-01-02 18:01:20 +00:00
nweiz@google.com 205f8ee5fc Use a semicolon as the separator for multipart form-data requests.
I believe both a semicolon and a comma are valid, but the semicolon seems more
widely-supported.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16567 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-29 00:34:31 +00:00
alanknight@google.com db782503f0 Rename specialTreatmentFor, improve handling of constants as constructor parameters.
Review URL: https://codereview.chromium.org//11644030

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16448 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 18:27:57 +00:00
sgjesse@google.com 7e293aa077 Reapply "Fix URI encoding/decoding of + and space""
Updated test expectations for some tests for pkg/http, pkg/oauth2 and
pub to match the change.

TBR=lrn@google.com

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16426 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 09:50:05 +00:00
floitsch@google.com 5271b558c2 Close receivePort when tests are failing.
Review URL: https://codereview.chromium.org//11570065

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16422 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 09:37:48 +00:00
blois@google.com 5690418a11 Fixing a bunch of dartc errors in dart:html tests.
BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16413 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-21 01:38:08 +00:00
rnystrom@google.com bfb9f427ee Convert unittest to use "package:" imports.
Use consistent path to "unittest" in browser test wrapper.

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16408 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 23:51:22 +00:00
rnystrom@google.com a76646fafa Revert "Convert unittest to use "package:" imports."
This reverts commit 6f77df43a437af7076ee154bc06ade261d6e32a0.

BUG=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@16407 260f80e4-7a28-3924-810f-c04153c831b5
2012-12-20 22:41:02 +00:00