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

Unified Diff: tests/language/parameter_initializer2_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/parameter_initializer2_test.dart
diff --git a/tests/language/parameter_initializer2_test.dart b/tests/language/parameter_initializer2_test.dart
index 7897f93d1d33b633811fe8d754a256ead8a6b44b..ac5e0ce117244821e78c6623d7dd79e31eab24f6 100644
--- a/tests/language/parameter_initializer2_test.dart
+++ b/tests/language/parameter_initializer2_test.dart
@@ -6,7 +6,6 @@ import "package:expect/expect.dart";
// Test Parameter Intializer.
-
class ParameterInitializer2Test {
static testMain() {
var a = new A(123);
@@ -24,22 +23,20 @@ class ParameterInitializer2Test {
var e = new E(1);
Expect.equals(4, e.x);
- var f = new F(1,2,3,4);
+ var f = new F(1, 2, 3, 4);
Expect.equals(4, f.z);
}
}
// untyped
class A {
- A(this.x) {
- }
+ A(this.x) {}
int x;
}
// typed
class B {
- B(int this.x) {
- }
+ B(int this.x) {}
int x;
}
@@ -66,11 +63,12 @@ class E {
int x;
}
-
// mixed
class F {
- F(x, this.y_, int w, int this.z) : x_ = x, w_ = w { }
- F.foobar(this.z, int this.x_, int this.az_) { }
+ F(x, this.y_, int w, int this.z)
+ : x_ = x,
+ w_ = w {}
+ F.foobar(this.z, int this.x_, int this.az_) {}
int x_;
int y_;
int w_;
@@ -78,7 +76,6 @@ class F {
int az_;
}
-
main() {
ParameterInitializer2Test.testMain();
}

Powered by Google App Engine
This is Rietveld 408576698