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

Unified Diff: tests/language/closure3_test.dart

Issue 10891020: Update almost all tests (except co19) to use the new try-catch syntax. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. Created 8 years, 4 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/call_through_null_getter_test.dart ('k') | tests/language/closure_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/closure3_test.dart
diff --git a/tests/language/closure3_test.dart b/tests/language/closure3_test.dart
index 3597eb6a38302ff4b3b6a6eb879f740b65f8222e..812322877bf86de2122fa8be1768e98125dbeb66 100644
--- a/tests/language/closure3_test.dart
+++ b/tests/language/closure3_test.dart
@@ -13,7 +13,7 @@ main() {
try {
test(null, 2);
Expect.fail('Expected NullPointerException');
- } catch (NullPointerException ex) {
+ } on NullPointerException catch (ex) {
return;
}
Expect.fail('Expected NullPointerException');
« no previous file with comments | « tests/language/call_through_null_getter_test.dart ('k') | tests/language/closure_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698