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

Unified Diff: tests/language/try_catch_optimized4_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_optimized4_test.dart
diff --git a/tests/language/try_catch_optimized4_test.dart b/tests/language/try_catch_optimized4_test.dart
index b3dd0dd7383fed5c40445df91ec8f8344138efd3..dc98f31fe3f3c408adae0251af929687024c52e7 100644
--- a/tests/language/try_catch_optimized4_test.dart
+++ b/tests/language/try_catch_optimized4_test.dart
@@ -7,15 +7,17 @@ import "package:expect/expect.dart";
// Test correct dead phi elimination with try catch.
-List<Object> a = [1,2,3,4,5];
+List<Object> a = [1, 2, 3, 4, 5];
-class MyError { }
+class MyError {}
class M {
maythrow(i) {
try {
if (i <= 5) throw new MyError();
- } catch(e) { throw e; }
+ } catch (e) {
+ throw e;
+ }
}
}
@@ -26,7 +28,7 @@ loop_test() {
try {
String res = m.maythrow(i);
failed = true;
- } on MyError catch(e) { }
+ } on MyError catch (e) {}
if (!identical(failed, false)) {
Expect.fail("");
}
@@ -36,6 +38,3 @@ loop_test() {
main() {
for (var i = 0; i < 20; i++) loop_test();
}
-
-
-

Powered by Google App Engine
This is Rietveld 408576698