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

Unified Diff: tests/language/type_error_test.dart

Issue 11369243: Make Exception a class, not an interface, and remove the const constructor. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated. Moved safeToString to Error. Created 8 years, 1 month 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/html/indexeddb_2_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 18d72cec10bb82e620507510e4cbae0c2c562e76..60784dc9bc65f74ab4464eeedf061394b083825f 100644
--- a/tests/language/type_error_test.dart
+++ b/tests/language/type_error_test.dart
@@ -151,7 +151,7 @@ checkCastError(o) {
try {
print(o);
} on TypeError catch (e) {
- print('unexpected type error: ${NoSuchMethodError.safeToString(e)}');
+ print('unexpected type error: ${Error.safeToString(e)}');
throw; // Unexpected type error.
} on CastError catch (e) {
print(e); // This might provoke an error.
« no previous file with comments | « tests/html/indexeddb_2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698