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

Unified Diff: tests/language/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/no_such_method_dispatcher_test.dart
diff --git a/tests/language/no_such_method_dispatcher_test.dart b/tests/language/no_such_method_dispatcher_test.dart
index 3aad16f36ffd200bd116af55668a86814284a918..4e1836378edaa6573e3f862da60bd28ba84209e7 100644
--- a/tests/language/no_such_method_dispatcher_test.dart
+++ b/tests/language/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