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

Unified Diff: tests/language_strong/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_strong/try_catch_optimized4_test.dart
diff --git a/tests/language_strong/try_catch_optimized4_test.dart b/tests/language_strong/try_catch_optimized4_test.dart
index 7cad947e751226b8427282989c07476f69ad5b10..d42e3815b40c3a001aff500a9d6ac4cb7279fdcb 100644
--- a/tests/language_strong/try_catch_optimized4_test.dart
+++ b/tests/language_strong/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