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

Unified Diff: tests/language_strong/constructor_initializer_test.dart

Issue 2768073002: Format all multitests (Closed)
Patch Set: Created 3 years, 9 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/constructor_initializer_test.dart
diff --git a/tests/language_strong/constructor_initializer_test.dart b/tests/language_strong/constructor_initializer_test.dart
index cae3ca1028c940233780b6fb845dc62a307932cb..ec3d7fb5a4a366781c41be5b8d66cb86286bb64e 100644
--- a/tests/language_strong/constructor_initializer_test.dart
+++ b/tests/language_strong/constructor_initializer_test.dart
@@ -6,7 +6,9 @@ import "package:expect/expect.dart";
class A {
var _x, _y;
- A(x, [y = 10]): _x = x++, _y = y++ {
+ A(x, [y = 10])
+ : _x = x++,
+ _y = y++ {
// Check that value of modified constructor parameters
// is remembered in the constructor body.
Expect.equals(x, _x + 1);
@@ -20,10 +22,13 @@ class B extends A {
// The super call in the middle of the initializer list conceptually
// forces two super call chains, one for initializer list and a second
// one for the constructor bodies.
- B(a, b): _a = a++, super(a + b++), _b = b++ {
+ B(a, b)
+ : _a = a++,
+ super(a + b++),
+ _b = b++ {
Expect.equals(a, _a + 1);
Expect.equals(b, _b + 1);
- Expect.equals(a + (b-2), _x);
+ Expect.equals(a + (b - 2), _x);
}
}

Powered by Google App Engine
This is Rietveld 408576698