| Index: tests/dom/dom_isolates_test.dart
|
| ===================================================================
|
| --- tests/dom/dom_isolates_test.dart (revision 7823)
|
| +++ tests/dom/dom_isolates_test.dart (working copy)
|
| @@ -32,22 +32,22 @@
|
| final iframe = document.createElement('iframe');
|
| document.body.appendChild(iframe);
|
|
|
| - asyncTest('Simple DOM isolate test', 1, () {
|
| - spawnDomIsolate(iframe.contentWindow, 'isolateMain').then((sendPort) {
|
| - sendPort.call('check').then((msg) {
|
| - Expect.equals('about:blank', msg);
|
| - callbackDone();
|
| - });
|
| - });
|
| + test('Simple DOM isolate test', () {
|
| + spawnDomIsolate(iframe.contentWindow, 'isolateMain').
|
| + then(expectAsync1((sendPort) {
|
| + sendPort.call('check').then(expectAsync1((msg) {
|
| + Expect.equals('about:blank', msg);
|
| + }));
|
| + }));
|
| });
|
|
|
| - asyncTest('Nested DOM isolates test', 1, () {
|
| - spawnDomIsolate(iframe.contentWindow, 'isolateMainTrampoline').then((sendPort) {
|
| - sendPort.call('check').then((msg) {
|
| - Expect.equals('about:blank', msg);
|
| - callbackDone();
|
| - });
|
| - });
|
| + test('Nested DOM isolates test', () {
|
| + spawnDomIsolate(iframe.contentWindow, 'isolateMainTrampoline').
|
| + then(expectAsync1((sendPort) {
|
| + sendPort.call('check').then(expectAsync1((msg) {
|
| + Expect.equals('about:blank', msg);
|
| + }));
|
| + }));
|
| });
|
|
|
| test('Null as target window', () {
|
|
|