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

Unified Diff: tests/language_strong/constructor_initializer_test.dart

Issue 2770063002: Revert "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 ec3d7fb5a4a366781c41be5b8d66cb86286bb64e..cae3ca1028c940233780b6fb845dc62a307932cb 100644
--- a/tests/language_strong/constructor_initializer_test.dart
+++ b/tests/language_strong/constructor_initializer_test.dart
@@ -6,9 +6,7 @@ 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);
@@ -22,13 +20,10 @@ 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);
}
}
« no previous file with comments | « tests/language_strong/constructor_duplicate_initializers_test.dart ('k') | tests/language_strong/constructor_name_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698