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

Unified Diff: tests/language/class_literal_test.dart

Issue 24280005: Remove unspecified behavior from test. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/class_literal_test.dart
===================================================================
--- tests/language/class_literal_test.dart (revision 27746)
+++ tests/language/class_literal_test.dart (working copy)
@@ -52,9 +52,9 @@
Expect.notEquals(Class, "Class");
// Verify toString() works for class literals.
- Expect.equals((Class).toString(), "Class");
+ Expect.isTrue((Class).toString() is String);
var y = Class;
- Expect.equals(y.toString(), "Class");
+ Expect.isTrue(y.toString() is String);
Expect.throws(() { Class.toString(); }, (e) => e is NoSuchMethodError);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698