| Index: tests/isolate/src/APIv2_spawnUriBrowserTest.dart
|
| diff --git a/tests/isolate/src/APIv2_spawnUriTest.dart b/tests/isolate/src/APIv2_spawnUriBrowserTest.dart
|
| similarity index 74%
|
| rename from tests/isolate/src/APIv2_spawnUriTest.dart
|
| rename to tests/isolate/src/APIv2_spawnUriBrowserTest.dart
|
| index db3190045e17d470c15c0af549aec01517113ff8..9bd10c9878e6592d11d8ec2b24506e50f317bab1 100644
|
| --- a/tests/isolate/src/APIv2_spawnUriTest.dart
|
| +++ b/tests/isolate/src/APIv2_spawnUriBrowserTest.dart
|
| @@ -8,15 +8,19 @@
|
| // 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.
|
| #import('dart:isolate');
|
|
|
| main() {
|
| - test('isolate fromUri - send and reply', () {
|
| + useDomConfiguration();
|
| + asyncTest('isolate fromUri - send and reply', 1, () {
|
| ReceivePort port = new ReceivePort();
|
| - port.receive(expectAsync2((msg, _) {
|
| + port.receive((msg, _) {
|
| expect(msg).equals('re: hi');
|
| port.close();
|
| - }));
|
| + callbackDone();
|
| + });
|
|
|
| // TODO(eub): make this work for non-JS targets.
|
| SendPort s = spawnUri('APIv2_spawnUriChildIsolate.js');
|
|
|