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/corelib/safe_to_string_test.dart

Issue 802653005: dart2js: put all type-test related properties on the prototype and not on the constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add workaround for non-existing classes. Created 6 years 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
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 c48b5dddc376b6fb4eb8e0a41549b22eec8680a2..ad2fbdc67941f6d33dcada2d8400174311acc44a 100644
--- a/tests/corelib/safe_to_string_test.dart
+++ b/tests/corelib/safe_to_string_test.dart
@@ -28,6 +28,8 @@ main() {
Expect.stringEquals('null', Error.safeToString(null));
Expect.stringEquals('true', Error.safeToString(true));
Expect.stringEquals('false', Error.safeToString(false));
- Expect.stringEquals("Instance of 'Object'",
+ // The class name may be minified.
+ String className = "$Object";
+ Expect.stringEquals("Instance of '$className'",
Error.safeToString(new Object()));
}
« no previous file with comments | « tests/compiler/dart2js/deferred_emit_type_checks_test.dart ('k') | tests/language/generic_object_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698