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

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

Issue 23045007: Mirror printer test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r26910, added more tests, and fixed issues. Created 7 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
« no previous file with comments | « dart/tests/lib/mirrors/library_metadata2_lib2.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/lib/mirrors/library_metadata2_test.dart
diff --git a/dart/tests/lib/mirrors/abstract_test.dart b/dart/tests/lib/mirrors/library_metadata2_test.dart
similarity index 55%
copy from dart/tests/lib/mirrors/abstract_test.dart
copy to dart/tests/lib/mirrors/library_metadata2_test.dart
index 39923639e08b8a559e2de07d8e825a78c6a994eb..4604f7e39f85aafad497fe0d131bbf7a405d258c 100644
--- a/dart/tests/lib/mirrors/abstract_test.dart
+++ b/dart/tests/lib/mirrors/library_metadata2_test.dart
@@ -2,18 +2,14 @@
// 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.
-
-library test.abstract_test;
-
import 'dart:mirrors';
-import 'stringify.dart';
+import 'library_metadata2_lib1.dart';
-abstract class Foo {
-}
+import 'library_metadata2_lib2.dart'; /// 01: compile-time error
void main() {
- expect('Class(s(Foo) in s(test.abstract_test), top-level)',
- reflectClass(Foo));
+ for (var library in currentMirrorSystem().libraries.values) {
+ print(library.metadata);
+ }
}
« no previous file with comments | « dart/tests/lib/mirrors/library_metadata2_lib2.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698