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

Unified Diff: tests/language_strong/try_catch_on_syntax_test.dart

Issue 2765893003: Fix warnings_checker.dart handling of 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_catch5_test.dart ('k') | tests/language_strong/try_catch_syntax_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 5c4ad351a2a5bd7dddede0db9d553071590c47f1..33335dad006eed4b2a1fb0c4200efa8f5c349944 100644
--- a/tests/language_strong/try_catch_on_syntax_test.dart
+++ b/tests/language_strong/try_catch_on_syntax_test.dart
@@ -15,11 +15,11 @@ void test1() {
try {
throw new MyException1();
}
- on on MyException2 catch (e) { } /// 02: compile-time error
- catch MyException2 catch (e) { } /// 03: compile-time error
- catch catch catch (e) { } /// 04: compile-time error
- on (e) { } /// 05: compile-time error
- catch MyException2 catch (e) { } /// 06: compile-time error
+ on on MyException2 catch (e) { } //# 02: compile-time error
+ catch MyException2 catch (e) { } //# 03: compile-time error
+ catch catch catch (e) { } //# 04: compile-time error
+ on (e) { } //# 05: compile-time error
+ catch MyException2 catch (e) { } //# 06: compile-time error
on MyException2 catch (e) {
foo = 1;
} on MyException1 catch (e) {
@@ -27,7 +27,7 @@ void test1() {
} on MyException catch (e) {
foo = 3;
}
- on UndefinedClass /// 07: static type warning
+ on UndefinedClass //# 07: static type warning
catch(e) { foo = 4; }
Expect.equals(2, foo);
}
@@ -37,8 +37,8 @@ testFinal() {
throw "catch this!";
} catch (e, s) {
// Test that the error and stack trace variables are final.
- e = null; // /// 10: runtime error
- s = null; // /// 11: runtime error
+ e = null; // //# 10: runtime error
+ s = null; // //# 11: runtime error
}
}
« no previous file with comments | « tests/language_strong/try_catch5_test.dart ('k') | tests/language_strong/try_catch_syntax_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698