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

Unified Diff: tests/language_strong/implicit_scope_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_strong/implicit_scope_test.dart
diff --git a/tests/language_strong/implicit_scope_test.dart b/tests/language_strong/implicit_scope_test.dart
index 26cb13ca823418d02c0dc910c582acb4cc8e7641..49d0dd95c03d8b6deb92b82eb21fdd0160ccf4ec 100644
--- a/tests/language_strong/implicit_scope_test.dart
+++ b/tests/language_strong/implicit_scope_test.dart
@@ -10,10 +10,14 @@ class ImplicitScopeTest {
static bool alwaysTrue() {
return 1 + 1 == 2;
}
+
static testMain() {
var a = "foo";
var b;
- if (alwaysTrue()) var a = "bar"; else var b = a;
+ if (alwaysTrue())
+ var a = "bar";
+ else
+ var b = a;
Expect.equals("foo", a);
Expect.equals(null, b);
@@ -25,7 +29,7 @@ class ImplicitScopeTest {
Expect.equals("foo", a);
Expect.equals(null, b);
- do var a = "bar", b = "baz"; while("black" == "white");
+ do var a = "bar", b = "baz"; while ("black" == "white");
Expect.equals("foo", a);
Expect.equals(null, b);
}

Powered by Google App Engine
This is Rietveld 408576698