| Index: tests/isolate/src/APIv2_spawnUriBrowserTest.dart
|
| diff --git a/tests/isolate/src/APIv2_spawnUriBrowserTest.dart b/tests/isolate/src/APIv2_spawnUriBrowserTest.dart
|
| index da0f1d5916e7722116921d35ed4ff36d59914578..5389885ac92d43f711bbce9eb1b20825b955164b 100644
|
| --- a/tests/isolate/src/APIv2_spawnUriBrowserTest.dart
|
| +++ b/tests/isolate/src/APIv2_spawnUriBrowserTest.dart
|
| @@ -2,23 +2,26 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -// example of spawning an isolate from a URI
|
| +// Example of spawning an isolate from a URI
|
| +// Note: the following comment is used by test.dart to additionally compile the
|
| +// other isolate's code.
|
| +// OtherScripts=APIv2_spawnUriChildIsolate.dart
|
| #library('spawn_tests');
|
| -#import("../../../client/testing/unittest/unittest.dart");
|
| -#import("dart:dom"); // import added so test.dart can treat this as a webtest.
|
| +#import('../../../client/testing/unittest/unittest.dart');
|
| +#import('dart:dom'); // import added so test.dart can treat this as a webtest.
|
| #import('dart:isolate');
|
|
|
| main() {
|
| - asyncTest("isolate fromUri - send and reply ", 1, () {
|
| + asyncTest('isolate fromUri - send and reply', 1, () {
|
| ReceivePort port = new ReceivePort();
|
| port.receive((msg, _) {
|
| - expect(msg).equals("re: hi");
|
| + expect(msg).equals('re: hi');
|
| port.close();
|
| callbackDone();
|
| });
|
|
|
| // TODO(eub): make this work for non-JS targets.
|
| - Isolate2 c = new Isolate2.fromUri("./APIv2_spawnUriChildIsolate.js");
|
| - c.sendPort.send("hi", port.toSendPort());
|
| + Isolate2 c = new Isolate2.fromUri('APIv2_spawnUriChildIsolate.js');
|
| + c.sendPort.send('hi', port.toSendPort());
|
| });
|
| }
|
|
|