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

Unified Diff: tests/language/string_interpolate_npe_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/static_initializer_type_error_test.dart ('k') | tests/language/string_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/string_interpolate_npe_test.dart
diff --git a/tests/language/string_interpolate_npe_test.dart b/tests/language/string_interpolate_npe_test.dart
index 4ed439488df0019b0c64843856b1253596a5f5e2..0baa32a9a43b4cb430fd75420e010297765c02e3 100644
--- a/tests/language/string_interpolate_npe_test.dart
+++ b/tests/language/string_interpolate_npe_test.dart
@@ -15,7 +15,7 @@ main() {
a = null;
try {
s = "Hello Mr. ${a.name}";
- } catch (NullPointerException e) {
+ } on NullPointerException catch (e) {
return;
}
Expect.fail("NullPointerException not thrown");
« no previous file with comments | « tests/language/static_initializer_type_error_test.dart ('k') | tests/language/string_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698