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

Unified Diff: tests/lib/mirrors/library_metatarget_test.dart

Issue 30013002: Revert "Revert "Resolve metadata on library tags"" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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: tests/lib/mirrors/library_metatarget_test.dart
diff --git a/tests/lib/mirrors/abstract_test.dart b/tests/lib/mirrors/library_metatarget_test.dart
similarity index 50%
copy from tests/lib/mirrors/abstract_test.dart
copy to tests/lib/mirrors/library_metatarget_test.dart
index 39923639e08b8a559e2de07d8e825a78c6a994eb..8bbb64ff03c4dd320b444f92512963e983a243ff 100644
--- a/tests/lib/mirrors/abstract_test.dart
+++ b/tests/lib/mirrors/library_metatarget_test.dart
@@ -2,18 +2,16 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Test abstract classes are retained.
+// Regression test for the combined use of metatargets and library tags.
-library test.abstract_test;
+library topLib;
-import 'dart:mirrors';
-
-import 'stringify.dart';
+import 'library_metatarget_test_lib.dart';
+import 'library_metatarget_test_annotations_lib.dart';
-abstract class Foo {
-}
+@MirrorsUsed(metaTargets:const [Reflectable])
+import 'dart:mirrors';
void main() {
- expect('Class(s(Foo) in s(test.abstract_test), top-level)',
- reflectClass(Foo));
+ print(new A());
}

Powered by Google App Engine
This is Rietveld 408576698