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

Unified Diff: tests/language/inlined_throw_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/inlined_throw_test.dart
diff --git a/tests/language/inlined_throw_test.dart b/tests/language/inlined_throw_test.dart
index 43949493b1392e043495133f383f3b906930b385..ecc99d03c6a729686b2f73a32aa1900d9d3834ab 100644
--- a/tests/language/inlined_throw_test.dart
+++ b/tests/language/inlined_throw_test.dart
@@ -52,7 +52,10 @@ ternary(a, b, c) {
}
hest() => kast("hest");
-hest2() { return kast("hest2"); }
+hest2() {
+ return kast("hest2");
+}
+
foo() => true || kast("foo");
bar() => false || kast("foo");
barc() => callMeTrue() || kast("foo");
@@ -70,15 +73,19 @@ boo() {
callMe();
x = kast("boo");
}
+
yo() {
throw kast("yo");
}
+
bin() {
return 5 * kast("bin");
}
+
binCallThrow() {
return callMe() * kast("binct");
}
+
hoo() {
x[kast("hoo")] = 0;
x[kast("hoo")];
@@ -94,9 +101,9 @@ switcheroo() {
}
class ThrowConstructor {
- ThrowConstructor() :
- foo = callMeTrue(),
- bar = kast("ThrowConstructor") {
+ ThrowConstructor()
+ : foo = callMeTrue(),
+ bar = kast("ThrowConstructor") {
called = false;
}
@@ -155,7 +162,7 @@ dovileBreak() {
x = 1;
break;
} while (kast("vile"));
- return(x);
+ return (x);
}
dovileContinue() {
@@ -165,7 +172,7 @@ dovileContinue() {
x = 1;
continue;
} while (kast("vile"));
- return(x);
+ return (x);
}
dovileBreakContinue(x) {
@@ -174,7 +181,7 @@ dovileBreakContinue(x) {
if (x == 1) break;
continue;
} while (kast("vile"));
- return(x);
+ return (x);
}
faar1() {

Powered by Google App Engine
This is Rietveld 408576698