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

Unified Diff: dart/tests/corelib/symbol_test.dart

Issue 14173005: Update dart:mirrors to use Symbol. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Also use _symbol_dev.Symbol.getName in dart2js Created 7 years, 8 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 | « dart/sdk/lib/mirrors/mirrors.dart ('k') | dart/tests/lib/mirrors/mirrors_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/corelib/symbol_test.dart
diff --git a/dart/tests/corelib/symbol_test.dart b/dart/tests/corelib/symbol_test.dart
index b3604c4e0e51c518e30baffb15f4a144f8f86a24..a160244d4786aaace8e3d318dd6abad137efabf0 100644
--- a/dart/tests/corelib/symbol_test.dart
+++ b/dart/tests/corelib/symbol_test.dart
@@ -83,4 +83,8 @@ main() {
if (new Symbol('fisk').hashCode != x.hashCode) {
throw "non-const Symbol's hashCode not equal to its const equivalent";
}
+
+ if (new Symbol('') != const Symbol('')) {
+ throw 'empty Symbol not equals to itself';
+ }
}
« no previous file with comments | « dart/sdk/lib/mirrors/mirrors.dart ('k') | dart/tests/lib/mirrors/mirrors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698