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

Unified Diff: tests/lib_strong/html/window_nosuchmethod_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/lib_strong/html/window_nosuchmethod_test.dart
diff --git a/tests/lib_strong/html/window_nosuchmethod_test.dart b/tests/lib_strong/html/window_nosuchmethod_test.dart
index 4cc84b4f49f8ca2c4bb9e0df21307ddef166c6f8..5e3556f80f447a97c15707023c6467931018d09d 100644
--- a/tests/lib_strong/html/window_nosuchmethod_test.dart
+++ b/tests/lib_strong/html/window_nosuchmethod_test.dart
@@ -19,21 +19,20 @@ main() {
var things = <dynamic>[new Unused(), dom.window];
test('windowNonMethod', () {
- var win = things[inscrutable(1)];
- final message = foo("Hello World");
- expect(() => win.foo(message), throwsNoSuchMethodError);
- });
+ var win = things[inscrutable(1)];
+ final message = foo("Hello World");
+ expect(() => win.foo(message), throwsNoSuchMethodError);
+ });
test('foo', () {
- var win = things[inscrutable(0)];
- String x = win.foo('bar');
- expect(x, 'not bar');
- });
+ var win = things[inscrutable(0)];
+ String x = win.foo('bar');
+ expect(x, 'not bar');
+ });
// Use dom.window directly in case the compiler does type inference.
test('windowNonMethod2', () {
- final message = foo("Hello World");
- expect(() => (dom.window as dynamic).foo(message),
- throwsNoSuchMethodError);
- });
+ final message = foo("Hello World");
+ expect(() => (dom.window as dynamic).foo(message), throwsNoSuchMethodError);
+ });
}

Powered by Google App Engine
This is Rietveld 408576698