Index: tests/language_strong/field_initialization_order_test.dart |
diff --git a/tests/language_strong/field_initialization_order_test.dart b/tests/language_strong/field_initialization_order_test.dart |
index 92fd3df7e02e18a6ea4c7087a16b551076ae1cd9..36167e8cd4ca9c966c53680598e04e3e58693134 100644 |
--- a/tests/language_strong/field_initialization_order_test.dart |
+++ b/tests/language_strong/field_initialization_order_test.dart |
@@ -33,7 +33,9 @@ class TwoFields { |
TwoFields.initB() : b = new Mark('bi'); |
- TwoFields.initBoth() : a = new Mark('ai'), b = new Mark('bi'); |
+ TwoFields.initBoth() |
+ : a = new Mark('ai'), |
+ b = new Mark('bi'); |
} |
class InheritOneField extends OneField { |
@@ -41,13 +43,19 @@ class InheritOneField extends OneField { |
InheritOneField() : super(); |
- InheritOneField.init() : b = new Mark('bi'), super(); |
+ InheritOneField.init() |
+ : b = new Mark('bi'), |
+ super(); |
InheritOneField.superWithInit() : super.init(); |
- InheritOneField.initWithSuperInit() : b = new Mark('bi'), super.init(); |
+ InheritOneField.initWithSuperInit() |
+ : b = new Mark('bi'), |
+ super.init(); |
- InheritOneField.initWithSuperInit2() : super.init(), b = new Mark('bi'); |
+ InheritOneField.initWithSuperInit2() |
+ : super.init(), |
+ b = new Mark('bi'); |
} |
String run(callback) { |
@@ -65,14 +73,11 @@ main() { |
Expect.equals('b.a.bi.', run(() => new TwoFields.initB())); |
Expect.equals('b.a.ai.bi.', run(() => new TwoFields.initBoth())); |
- Expect.equals('b.a.', run(() => |
- new InheritOneField())); |
- Expect.equals('b.bi.a.', run(() => |
- new InheritOneField.init())); |
- Expect.equals('b.a.ai.', run(() => |
- new InheritOneField.superWithInit())); |
- Expect.equals('b.bi.a.ai.', run(() => |
- new InheritOneField.initWithSuperInit())); |
- Expect.equals('b.a.ai.bi.', run(() => |
- new InheritOneField.initWithSuperInit2())); |
+ Expect.equals('b.a.', run(() => new InheritOneField())); |
+ Expect.equals('b.bi.a.', run(() => new InheritOneField.init())); |
+ Expect.equals('b.a.ai.', run(() => new InheritOneField.superWithInit())); |
+ Expect.equals( |
+ 'b.bi.a.ai.', run(() => new InheritOneField.initWithSuperInit())); |
+ Expect.equals( |
+ 'b.a.ai.bi.', run(() => new InheritOneField.initWithSuperInit2())); |
} |