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

Unified Diff: tests/language_strong/try_catch_on_syntax_test.dart

Issue 2774783002: Re-land "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « tests/language_strong/try_catch4_test.dart ('k') | tests/language_strong/try_catch_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language_strong/try_catch_on_syntax_test.dart
diff --git a/tests/language_strong/try_catch_on_syntax_test.dart b/tests/language_strong/try_catch_on_syntax_test.dart
index 33335dad006eed4b2a1fb0c4200efa8f5c349944..03672caf63d277467414032b0959178228bb33b8 100644
--- a/tests/language_strong/try_catch_on_syntax_test.dart
+++ b/tests/language_strong/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() {
« no previous file with comments | « tests/language_strong/try_catch4_test.dart ('k') | tests/language_strong/try_catch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698