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

Unified Diff: test/codegen/lib/mirrors/no_metadata_test.dart

Issue 2265533002: Add mirrors tests (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 4 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
Index: test/codegen/lib/mirrors/no_metadata_test.dart
diff --git a/test/codegen/language/regress_13462_0_test.dart b/test/codegen/lib/mirrors/no_metadata_test.dart
similarity index 74%
copy from test/codegen/language/regress_13462_0_test.dart
copy to test/codegen/lib/mirrors/no_metadata_test.dart
index b87bf1f24d7378ea99edd41562464cc8f67ffed6..f5c0747a59928a9d4a8c29bc82bedf659940c368 100644
--- a/test/codegen/language/regress_13462_0_test.dart
+++ b/test/codegen/lib/mirrors/no_metadata_test.dart
@@ -4,6 +4,11 @@
import 'dart:mirrors';
+import 'stringify.dart';
+
+class Foo {
+}
+
main() {
- print(MirrorSystem.getName(#foo));
+ expect('[]', reflectClass(Foo).metadata);
}
« no previous file with comments | « test/codegen/lib/mirrors/new_instance_with_type_arguments_test.dart ('k') | test/codegen/lib/mirrors/null2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698