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

Unified Diff: tests/language_strong/no_such_method_dispatcher_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/language_strong/no_such_method_dispatcher_test.dart
diff --git a/tests/language_strong/no_such_method_dispatcher_test.dart b/tests/language_strong/no_such_method_dispatcher_test.dart
index ca1159134f1690b3de65a86c053699dace35ad71..054541b1b701d2e024beb1240ff900cac4fec896 100644
--- a/tests/language_strong/no_such_method_dispatcher_test.dart
+++ b/tests/language_strong/no_such_method_dispatcher_test.dart
@@ -11,10 +11,11 @@ class A {
noSuchMethod(m) {
return 123;
}
+
bar(x) => x + 1;
}
-class B extends A { }
+class B extends A {}
class C {
C(this.pos, this.named, this.posArgs, this.namedArgs);
@@ -30,6 +31,7 @@ class C {
}
return 123;
}
+
List posArgs;
Map namedArgs;
}
@@ -48,15 +50,14 @@ main() {
}
for (var i = 0; i < 20; ++i) {
- Expect.equals(123, b.bar(1,2,3));
- Expect.equals(123, b.bar(1,2,foo:3));
+ Expect.equals(123, b.bar(1, 2, 3));
+ Expect.equals(123, b.bar(1, 2, foo: 3));
}
// Test named and positional arguments.
- var c = new C(1, 2, [100], {"n1":101, "n2":102});
+ var c = new C(1, 2, [100], {"n1": 101, "n2": 102});
for (var i = 0; i < 20; ++i) {
- Expect.equals(123, c.bar(100, n1:101, n2:102));
- Expect.equals(123, c.bar(100, n2:102, n1:101));
+ Expect.equals(123, c.bar(100, n1: 101, n2: 102));
+ Expect.equals(123, c.bar(100, n2: 102, n1: 101));
}
}
-

Powered by Google App Engine
This is Rietveld 408576698