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

Unified Diff: tests/language/type_error_test.dart

Issue 10977078: Rename CastException to CastError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Now without the TODO. Created 8 years, 3 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/type_cast_vm_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_error_test.dart
diff --git a/tests/language/type_error_test.dart b/tests/language/type_error_test.dart
index 54a566d67aec0cfc2ff299d9c92c3e21d2ee6b03..18d72cec10bb82e620507510e4cbae0c2c562e76 100644
--- a/tests/language/type_error_test.dart
+++ b/tests/language/type_error_test.dart
@@ -153,11 +153,11 @@ checkCastError(o) {
} on TypeError catch (e) {
print('unexpected type error: ${NoSuchMethodError.safeToString(e)}');
throw; // Unexpected type error.
- } on CastException catch (e) {
+ } on CastError catch (e) {
print(e); // This might provoke an error.
return; // Expected a cast error.
}
- throw 'expected CastException';
+ throw 'expected CastError';
}
bool assertionsEnabled = false;
« no previous file with comments | « tests/language/type_cast_vm_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698