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

Unified Diff: tests/language/field_initialization_order_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/field_initialization_order_test.dart
diff --git a/tests/language/field_initialization_order_test.dart b/tests/language/field_initialization_order_test.dart
index 92fd3df7e02e18a6ea4c7087a16b551076ae1cd9..36167e8cd4ca9c966c53680598e04e3e58693134 100644
--- a/tests/language/field_initialization_order_test.dart
+++ b/tests/language/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()));
}

Powered by Google App Engine
This is Rietveld 408576698