Index: tests/language/try_catch_on_syntax_test.dart |
diff --git a/tests/language/try_catch_on_syntax_test.dart b/tests/language/try_catch_on_syntax_test.dart |
index 33335dad006eed4b2a1fb0c4200efa8f5c349944..03672caf63d277467414032b0959178228bb33b8 100644 |
--- a/tests/language/try_catch_on_syntax_test.dart |
+++ b/tests/language/try_catch_on_syntax_test.dart |
@@ -4,11 +4,11 @@ |
import "package:expect/expect.dart"; |
-class MyException { } |
+class MyException {} |
-class MyException1 extends MyException { } |
+class MyException1 extends MyException {} |
-class MyException2 extends MyException { } |
+class MyException2 extends MyException {} |
void test1() { |
var foo = 0; |
@@ -28,18 +28,20 @@ void test1() { |
foo = 3; |
} |
on UndefinedClass //# 07: static type warning |
- catch(e) { foo = 4; } |
+ catch (e) { |
+ foo = 4; |
+ } |
Expect.equals(2, foo); |
} |
testFinal() { |
try { |
throw "catch this!"; |
- } catch (e, s) { |
- // Test that the error and stack trace variables are final. |
+ } catch (e, s) { |
+ // Test that the error and stack trace variables are final. |
e = null; // //# 10: runtime error |
s = null; // //# 11: runtime error |
- } |
+ } |
} |
main() { |