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

Unified Diff: tests/language/regress_13462_1_test.dart

Issue 24361003: Fix http://dartbug.com/13462 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add TODO. 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 | « tests/language/regress_13462_0_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/regress_13462_1_test.dart
diff --git a/tests/lib/mirrors/no_metadata_test.dart b/tests/language/regress_13462_1_test.dart
similarity index 72%
copy from tests/lib/mirrors/no_metadata_test.dart
copy to tests/language/regress_13462_1_test.dart
index f5c0747a59928a9d4a8c29bc82bedf659940c368..bffdd033426d4b7646cb8858017f98c64f7c04e7 100644
--- a/tests/lib/mirrors/no_metadata_test.dart
+++ b/tests/language/regress_13462_1_test.dart
@@ -4,11 +4,7 @@
import 'dart:mirrors';
-import 'stringify.dart';
-
-class Foo {
-}
-
main() {
- expect('[]', reflectClass(Foo).metadata);
+ var name = MirrorSystem.getName(#foo);
+ if (name != 'foo') throw 'Wrong name: $name != foo';
}
« no previous file with comments | « tests/language/regress_13462_0_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698