| Index: tests/isolate/src/APIv2_spawnUriNegativeTest.dart
|
| diff --git a/tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart b/tests/isolate/src/APIv2_spawnUriNegativeTest.dart
|
| similarity index 75%
|
| rename from tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart
|
| rename to tests/isolate/src/APIv2_spawnUriNegativeTest.dart
|
| index 8966c0aac70592179549db373acc453170abf457..aca2212096a90f7d8f6edf0ef9e9a52b9d313cb8 100644
|
| --- a/tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart
|
| +++ b/tests/isolate/src/APIv2_spawnUriNegativeTest.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.
|
| #import('dart:isolate');
|
|
|
| main() {
|
| - useDomConfiguration();
|
| - asyncTest('isolate fromUri - negative test', 1, () {
|
| + test('isolate fromUri - negative test', () {
|
| ReceivePort port = new ReceivePort();
|
| - port.receive((msg, _) {
|
| + port.receive(later2((msg, _) {
|
| expect(msg).equals('re: hello'); // should be hi, not hello
|
| port.close();
|
| - callbackDone();
|
| - });
|
| + }));
|
|
|
| // TODO(eub): make this work for non-JS targets.
|
| SendPort s = spawnUri('APIv2_spawnUriChildIsolate.js');
|
|
|