| Index: tests/html/js_interop_4_test.dart
|
| diff --git a/tests/html/js_interop_4_test.dart b/tests/html/js_interop_4_test.dart
|
| index 4ad3e042c17d82e1e6245ab3e601fb15349dde91..f921d887f884077eeea8ee49a509cea003eedde9 100644
|
| --- a/tests/html/js_interop_4_test.dart
|
| +++ b/tests/html/js_interop_4_test.dart
|
| @@ -10,17 +10,12 @@
|
|
|
| final testData = const [1, '2', 'true'];
|
|
|
| -// TODO(vsm): Convert all DOM isolate tests to the new syntax.
|
| -class TestIsolate extends Isolate {
|
| - TestIsolate() : super();
|
| +void testIsolateEntry() {
|
| + var fun1 = window.lookupPort('fun1');
|
| + var result = fun1.callSync(testData);
|
|
|
| - void main() {
|
| - var fun1 = window.lookupPort('fun1');
|
| - var result = fun1.callSync(testData);
|
| -
|
| - var fun2 = window.lookupPort('fun2');
|
| - fun2.callSync(result);
|
| - }
|
| + var fun2 = window.lookupPort('fun2');
|
| + fun2.callSync(result);
|
| }
|
|
|
| main() {
|
| @@ -64,6 +59,6 @@ main() {
|
| port2.receive(fun2);
|
| window.registerPort('fun2', port2.toSendPort());
|
|
|
| - new TestIsolate().spawn();
|
| + spawnFunction(testIsolateEntry);
|
| });
|
| }
|
|
|