| Index: tests/lib_strong/html/js_interop_1_test.dart
|
| diff --git a/tests/lib_strong/html/js_interop_1_test.dart b/tests/lib_strong/html/js_interop_1_test.dart
|
| index c7165c4dde470794fcc489777ea1c7ce71def876..4168fcb6c88b434247c3617c9fd7d394b4ee2275 100644
|
| --- a/tests/lib_strong/html/js_interop_1_test.dart
|
| +++ b/tests/lib_strong/html/js_interop_1_test.dart
|
| @@ -3,6 +3,7 @@
|
| // BSD-style license that can be found in the LICENSE file
|
|
|
| library JsInterop1Test;
|
| +
|
| import 'package:unittest/unittest.dart';
|
| import 'package:unittest/html_config.dart';
|
| import 'dart:html';
|
| @@ -21,14 +22,12 @@ main() {
|
| test('js-to-dart-post-message', () {
|
| var subscription = null;
|
| var complete = false;
|
| - subscription = window.onMessage.listen(expectAsyncUntil(
|
| - (e) {
|
| - if (e.data == 'hello') {
|
| - subscription.cancel();
|
| - complete = true;
|
| - }
|
| - },
|
| - () => complete));
|
| + subscription = window.onMessage.listen(expectAsyncUntil((e) {
|
| + if (e.data == 'hello') {
|
| + subscription.cancel();
|
| + complete = true;
|
| + }
|
| + }, () => complete));
|
| injectSource("window.postMessage('hello', '*');");
|
| });
|
| }
|
|
|