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

Unified Diff: tests/language_strong/try_catch_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_catch_on_syntax_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_syntax_test.dart
diff --git a/tests/language_strong/try_catch_syntax_test.dart b/tests/language_strong/try_catch_syntax_test.dart
index 518d3dca17a6a949fd98355605469e61336def02..3aa93eb2f594dfe9c409fe94e847db7f51c4eaa4 100644
--- a/tests/language_strong/try_catch_syntax_test.dart
+++ b/tests/language_strong/try_catch_syntax_test.dart
@@ -12,36 +12,36 @@ main() {
}
testMissingCatch() {
- try { } // /// 01: compile-time error
+ try { } // //# 01: compile-time error
}
testMissingTry() {
- on Exception catch (e) { } // /// 02: compile-time error
- on Exception catch (e, trace) { } // /// 03: compile-time error
- finally { } // /// 04: compile-time error
+ on Exception catch (e) { } // //# 02: compile-time error
+ on Exception catch (e, trace) { } // //# 03: compile-time error
+ finally { } // //# 04: compile-time error
}
testDuplicateCatchVariable() {
- try { } on Exception catch (e, e) { } /// 05: compile-time error
+ try { } on Exception catch (e, e) { } //# 05: compile-time error
}
testIllegalFinally() {
- try { } finally (e) { } /// 06: compile-time error
+ try { } finally (e) { } //# 06: compile-time error
}
testIllegalCatch() {
- try { } catch () { } // /// 07: compile-time error
- try { } on MammaMia catch (e) { } /// 08: static type warning
- try { } catch (var e) { } // /// 09: compile-time error
- try { } catch (final e) { } // /// 10: compile-time error
- try { } catch (int e) { } // /// 11: compile-time error
- try { } catch (final int e) { } // /// 12: compile-time error
- try { } catch ([e, s]) { } // /// 13: compile-time error
- try { } catch (e, [s]) { } // /// 14: compile-time error
- try { } catch (e, [s0, s1]) { } // /// 15: compile-time error
+ try { } catch () { } // //# 07: compile-time error
+ try { } on MammaMia catch (e) { } //# 08: static type warning
+ try { } catch (var e) { } // //# 09: compile-time error
+ try { } catch (final e) { } // //# 10: compile-time error
+ try { } catch (int e) { } // //# 11: compile-time error
+ try { } catch (final int e) { } // //# 12: compile-time error
+ try { } catch ([e, s]) { } // //# 13: compile-time error
+ try { } catch (e, [s]) { } // //# 14: compile-time error
+ try { } catch (e, [s0, s1]) { } // //# 15: compile-time error
}
testIllegalRethrow() {
- try { rethrow; } catch (e) { } // /// 16: compile-time error
- try { } catch (e) { } finally { rethrow; } /// 17: compile-time error
+ try { rethrow; } catch (e) { } // //# 16: compile-time error
+ try { } catch (e) { } finally { rethrow; } //# 17: compile-time error
}
« no previous file with comments | « tests/language_strong/try_catch_on_syntax_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