| Index: tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart
|
| diff --git a/tests/isolate/src/APIv2_spawnUriNegativeTest.dart b/tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart
|
| similarity index 75%
|
| rename from tests/isolate/src/APIv2_spawnUriNegativeTest.dart
|
| rename to tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.dart
|
| index 17660b5790e31183cd237592edb231cc6483f023..8966c0aac70592179549db373acc453170abf457 100644
|
| --- a/tests/isolate/src/APIv2_spawnUriNegativeTest.dart
|
| +++ b/tests/isolate/src/APIv2_spawnUriBrowserNegativeTest.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 - negative test', () {
|
| + useDomConfiguration();
|
| + asyncTest('isolate fromUri - negative test', 1, () {
|
| ReceivePort port = new ReceivePort();
|
| - port.receive(expectAsync2((msg, _) {
|
| + port.receive((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');
|
|
|