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

Unified Diff: tests/language/try_catch_optimized5_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/try_catch_optimized5_test.dart
diff --git a/tests/language/try_catch_optimized5_test.dart b/tests/language/try_catch_optimized5_test.dart
index d96b1f0f2ac0ea8383fac0b00c2c9b6e8ba4b3f0..5fd5be1c1c355d928ed3378a7d30cb1c6eb0d62e 100644
--- a/tests/language/try_catch_optimized5_test.dart
+++ b/tests/language/try_catch_optimized5_test.dart
@@ -16,13 +16,11 @@ m1(int b) {
if (b == 1) throw 123;
}
-
@noInline
m2(int b) {
if (b == 2) throw 456;
}
-
@noInline
test1(int b, [int state = 0]) {
try {
@@ -56,19 +54,19 @@ test2(int b, [int state]) {
if (b == 3 && state != 3) throw "fail3";
if (s is! StackTrace) throw "fail4";
return e;
- }
+ }
return "no throw";
}
main() {
- for (var i=0; i<300; i++) {
+ for (var i = 0; i < 300; i++) {
Expect.equals("no throw", test1(0));
}
Expect.equals("no throw", test1(0));
Expect.equals(123, test1(1));
Expect.equals(456, test1(2));
- for (var i=0; i<300; i++) {
+ for (var i = 0; i < 300; i++) {
Expect.equals("no throw", test2(0));
}
Expect.equals("no throw", test2(0));

Powered by Google App Engine
This is Rietveld 408576698