Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Unified Diff: tests/html/js_interop_1_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/html/js_interop_1_test.dart
diff --git a/tests/html/js_interop_1_test.dart b/tests/html/js_interop_1_test.dart
index c7165c4dde470794fcc489777ea1c7ce71def876..4168fcb6c88b434247c3617c9fd7d394b4ee2275 100644
--- a/tests/html/js_interop_1_test.dart
+++ b/tests/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', '*');");
});
}

Powered by Google App Engine
This is Rietveld 408576698