Chromium Code Reviews| Index: tests/isolate/src/APIv2_spawnUriTest.dart |
| diff --git a/tests/isolate/src/APIv2_spawnUriBrowserTest.dart b/tests/isolate/src/APIv2_spawnUriTest.dart |
| similarity index 74% |
| rename from tests/isolate/src/APIv2_spawnUriBrowserTest.dart |
| rename to tests/isolate/src/APIv2_spawnUriTest.dart |
| index 9bd10c9878e6592d11d8ec2b24506e50f317bab1..72b54f5ad6ac139854d2e6a9f03dd4eb2f10183b 100644 |
| --- a/tests/isolate/src/APIv2_spawnUriBrowserTest.dart |
| +++ b/tests/isolate/src/APIv2_spawnUriTest.dart |
| @@ -8,19 +8,15 @@ |
| // OtherScripts=APIv2_spawnUriChildIsolate.dart |
| #library('spawn_tests'); |
| #import('../../../lib/unittest/unittest.dart'); |
| -#import('../../../lib/unittest/dom_config.dart'); |
| -#import('dart:dom'); // import added so test.dart can treat this as a webtest. |
|
Siggi Cherem (dart-lang)
2012/04/20 00:58:23
this is one of my favorites parts of this CL :)
T
Emily Fortuna
2012/04/20 20:06:19
+1!
|
| #import('dart:isolate'); |
| main() { |
| - useDomConfiguration(); |
| - asyncTest('isolate fromUri - send and reply', 1, () { |
| + test('isolate fromUri - send and reply', () { |
| ReceivePort port = new ReceivePort(); |
| - port.receive((msg, _) { |
| + port.receive(later2((msg, _) { |
| expect(msg).equals('re: hi'); |
| port.close(); |
| - callbackDone(); |
| - }); |
| + })); |
| // TODO(eub): make this work for non-JS targets. |
| SendPort s = spawnUri('APIv2_spawnUriChildIsolate.js'); |