Commit Graph

26 Commits

Author SHA1 Message Date
dgrove@google.com ca61f09608 Move unittest into lib, and put it into the SDK.
Review URL: http://codereview.chromium.org//9802015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5956 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-28 22:26:14 +00:00
sigmund@google.com 2b5952ac6c SendPort + ReceivePort changes:
- document what are valid messages in SendPort.send
- change SendPort.call to return a future of the reply
- remove ReceivePort.singleShot

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5368 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-12 22:52:36 +00:00
jacobr@google.com de1d525459 Enable new dart:html wrapperless frog bindings and wrapper dartium bindings.
Split unittest.dart into unittest_html and unittest_dom

Bug fixes to the new dart:html bindings to compile with dartc.

BUG=
TEST=

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4998 260f80e4-7a28-3924-810f-c04153c831b5
2012-03-06 00:30:09 +00:00
sigmund@google.com 643b772a61 isolates: remove Isolate2 interface, add the top-level spawning functions, add more comments, adapt tests to this API.
Review URL: https://chromiumcodereview.appspot.com//9521007

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4729 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-29 00:54:15 +00:00
sigmund@google.com 0c7cc5be1e spawnUri: fixing test with recent support for multi-script tests.
Review URL: https://chromiumcodereview.appspot.com//9478027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4726 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-28 21:53:53 +00:00
sigmund@google.com ee6a907611 isolates refactor: this change introduces 'dart:isolate' as a library. This is a
big global change, so let me explain in more detail. This refactoring CL does
the following:
- moves all the dart code for isolates in a common library (lib/isolate)

- changes frog to understand 'dart:isolate' imoprts by loading the code from the
  location above.

- changes the vm to undernstand 'dart:isolate' imports by creating a separate
  library that is part of the bootstrap. This follows the same code-structure
  that Todd suggested in his CL introducing the mirror library

- changes dartc to use the shared isolate library as the source of truth for
  type checking. I left around some of the internal js code in dartc so that the
  backend continues to work for apps that don't use isolates.

- changes all tests that use isolates to import the library explicitly (this is a large bulk of the files in this CL)

- changes test status for tests we can't fix in this repo (e.g. co19)

- splits the isolate library code to make it possible to preserve some tests
  without exposing internal types (e.g. tests about
  serialization/deserialization)

- changes the create_sdk script to copy the isolate library to the sdk

- includes the isolate library in dartdoc

I'll wait for at least one lgtm from each area (dartc, vm, frog, sdk)

There is one important pending thing this CL doesn't do:
- update test_runner.dart: This should be updated next time we upload the new
  binaries to tool/testing/bin
- dartium specific changes: Vijay, is there anything I need to do for dartium?

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4647 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-27 22:50:44 +00:00
sigmund@google.com 427d5e5ead remove promise:
- removes promise from corelib (use future instead)
 - move tests that depend on promises and proxies into samples/proxy/
 - remove dependence on promise from the rest of the system and tests

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

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4328 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-16 18:20:41 +00:00
eub@google.com 5699b5223e First exercise of spawnUri. Enabling the test needs issue 1666, but hand-running the test (copying and editing all necessary output files into the right structure) succeeds.
Review URL: https://chromiumcodereview.appspot.com//9386027

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4287 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 20:00:55 +00:00
sigmund@google.com 69530abbf1 move proxy out into sample/proxy
Review URL: https://chromiumcodereview.appspot.com//9363064

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4243 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-15 01:54:52 +00:00
sigmund@google.com 2276d0e7bf isolates in frog: playing with API improvements
Review URL: https://chromiumcodereview.appspot.com//9358010

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4153 260f80e4-7a28-3924-810f-c04153c831b5
2012-02-10 23:44:36 +00:00
ahe@google.com e348915d38 One more factory -> default pass.
Review URL: http://codereview.chromium.org//8958011

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2774 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 18:33:45 +00:00
whesse@google.com e543affd48 Avoid error about instantiating abstract class AsynchronousTestCase.
BUG=
TEST=

Review URL: http://codereview.chromium.org//9017016

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2741 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-22 09:21:44 +00:00
zundel@google.com b0348a06b7 Dartc was not raising an error if an interface declared constructors without a default clause
BUG=928
TEST=

Review URL: http://codereview.chromium.org//9017015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@2716 260f80e4-7a28-3924-810f-c04153c831b5
2011-12-21 19:05:54 +00:00
mattsh@google.com 41b75c295f rpc example for directory file listing
BUG=
TEST=

Review URL: http://codereview.chromium.org//8536006

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1954 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-30 23:24:20 +00:00
mattsh@google.com 5a674c7267 convert TestFramework to Future
BUG=
TEST=

Review URL: http://codereview.chromium.org//8478014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1228 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 22:57:01 +00:00
mattsh@google.com a93088691c convert isolates to use Future
BUG=
TEST=

Review URL: http://codereview.chromium.org//8457005

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@1213 260f80e4-7a28-3924-810f-c04153c831b5
2011-11-04 18:40:13 +00:00
benl@google.com 8154e8ac39 Fix broken test.
TBR=kasperl
Review URL: http://codereview.chromium.org//8375051

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@686 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-25 11:37:59 +00:00
benl@google.com 268d0ecf58 Switch to new test framework.
TBR=kasperl
Review URL: http://codereview.chromium.org//8380003

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@629 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-24 13:44:20 +00:00
benl@google.com df83719190 Remove prints.
TBR=floitsch
Review URL: http://codereview.chromium.org//8286021

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@429 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 11:50:06 +00:00
benl@google.com c0a59669cf Do away with the PromiseQueue.
Instead of queuing messages with promises in them until the promises
are ready, send immediately. This is done by sending a port down which
the receiver sends a port which can be used to signal completion of
the outgoing promise.
Review URL: https://chromereviews.googleplex.com/3573013

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@427 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-14 11:18:12 +00:00
kasperl@google.com 1a3e9c39b1 Make replyTo argument optional in SendPort.send.
R=benl@google.com
BUG=
TEST=

Review URL: https://chromereviews.googleplex.com/3561014

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@207 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 10:44:50 +00:00
floitsch@google.com c082160907 Allow mixing of heavy and light isolates.
Review URL: https://chromereviews.googleplex.com/3558015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@206 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 10:37:53 +00:00
floitsch@google.com 697b7b46b8 Add another isolate message passing test.
Review URL: https://chromereviews.googleplex.com/3572012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@200 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-07 08:31:35 +00:00
asiva@google.com 0b30a49971 5419598: Add a setjmp around the isolate spawning code so that parse errors
are caught and reported as errors.
5417103: Add a setjmp around Dart_Run_Loop so that parse errors
are caught and reported as errors.
Review URL: https://chromereviews.googleplex.com/3553012

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@140 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-06 18:33:36 +00:00
floitsch@google.com dacfcd5fa2 Allow nested spawns.
Review URL: https://chromereviews.googleplex.com/3511015

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@31 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 11:38:17 +00:00
dgrove@google.com ebe439410d Initial checkin.
git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@22 260f80e4-7a28-3924-810f-c04153c831b5
2011-10-05 06:22:36 +00:00