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

Unified Diff: tests/corelib/safe_to_string_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 | « sdk/lib/io/file_impl.dart ('k') | tests/html/indexeddb_1_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/safe_to_string_test.dart
diff --git a/tests/corelib/safe_to_string_test.dart b/tests/corelib/safe_to_string_test.dart
index 70d6624365a9ab70067fa12fc554029da618eaf8..dd80be1ce91e767babb265bbe22d29dbcbca6eb6 100644
--- a/tests/corelib/safe_to_string_test.dart
+++ b/tests/corelib/safe_to_string_test.dart
@@ -3,19 +3,19 @@
// BSD-style license that can be found in the LICENSE file.
main() {
- Expect.stringEquals('1', NoSuchMethodError.safeToString(1));
- Expect.stringEquals('0.5', NoSuchMethodError.safeToString(0.5));
- Expect.stringEquals('"1"', NoSuchMethodError.safeToString("1"));
- Expect.stringEquals('"\'"', NoSuchMethodError.safeToString("'"));
- Expect.stringEquals('"\'\'"', NoSuchMethodError.safeToString("''"));
- Expect.stringEquals(r'"\""', NoSuchMethodError.safeToString('"'));
- Expect.stringEquals(r'"\"\""', NoSuchMethodError.safeToString('""'));
+ Expect.stringEquals('1', Error.safeToString(1));
+ Expect.stringEquals('0.5', Error.safeToString(0.5));
+ Expect.stringEquals('"1"', Error.safeToString("1"));
+ Expect.stringEquals('"\'"', Error.safeToString("'"));
+ Expect.stringEquals('"\'\'"', Error.safeToString("''"));
+ Expect.stringEquals(r'"\""', Error.safeToString('"'));
+ Expect.stringEquals(r'"\"\""', Error.safeToString('""'));
- Expect.stringEquals(r'"\\\"\n\r"', NoSuchMethodError.safeToString('\\"\n\r'));
+ Expect.stringEquals(r'"\\\"\n\r"', Error.safeToString('\\"\n\r'));
- Expect.stringEquals('null', NoSuchMethodError.safeToString(null));
- Expect.stringEquals('true', NoSuchMethodError.safeToString(true));
- Expect.stringEquals('false', NoSuchMethodError.safeToString(false));
+ Expect.stringEquals('null', Error.safeToString(null));
+ Expect.stringEquals('true', Error.safeToString(true));
+ Expect.stringEquals('false', Error.safeToString(false));
Expect.stringEquals("Instance of 'Object'",
- NoSuchMethodError.safeToString(new Object()));
+ Error.safeToString(new Object()));
}
« no previous file with comments | « sdk/lib/io/file_impl.dart ('k') | tests/html/indexeddb_1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698