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

Unified Diff: tests/corelib/exception_implementation_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/corelib/core_runtime_types_test.dart ('k') | tests/corelib/future_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/exception_implementation_test.dart
diff --git a/tests/corelib/exception_implementation_test.dart b/tests/corelib/exception_implementation_test.dart
index 6b2c58500661d904a654edcde4c695e9e2a923e7..23b772a9d7daca894b40a1aa4ee5c548bf708fe4 100644
--- a/tests/corelib/exception_implementation_test.dart
+++ b/tests/corelib/exception_implementation_test.dart
@@ -10,7 +10,7 @@ main() {
try {
throw new Exception(msg);
Expect.fail("Unreachable");
- } catch (Exception e) {
+ } on Exception catch (e) {
Expect.isTrue(e is Exception);
Expect.isTrue(e is ExceptionImplementation);
Expect.equals("Exception: $msg", e.toString());
« no previous file with comments | « tests/corelib/core_runtime_types_test.dart ('k') | tests/corelib/future_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698