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

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

Issue 164823006: Remove LibraryMirror.topLevelMembers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync Created 6 years, 10 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/lib/mirrors/synthetic_accessor_properties_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/toplevel_members_test.dart
diff --git a/tests/lib/mirrors/toplevel_members_test.dart b/tests/lib/mirrors/toplevel_members_test.dart
deleted file mode 100644
index 84839d86670c7c56c17d71b3adfd6fe13b0556db..0000000000000000000000000000000000000000
--- a/tests/lib/mirrors/toplevel_members_test.dart
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// 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.
-
-library test.toplevel_members;
-
-import 'dart:mirrors';
-import 'package:expect/expect.dart';
-
-import 'stringify.dart';
-import 'declarations_model.dart' as declarations_model;
-
-selectKeys(map, predicate) {
- return map.keys.where((key) => predicate(map[key]));
-}
-
-main() {
- LibraryMirror lm =
- currentMirrorSystem().findLibrary(#test.declarations_model);
-
- Expect.setEquals(
- [#libraryVariable,
- const Symbol('libraryVariable='),
- #libraryGetter,
- const Symbol('librarySetter='),
- #libraryMethod,
- MirrorSystem.getSymbol('_libraryVariable', lm),
- MirrorSystem.getSymbol('_libraryVariable=', lm),
- MirrorSystem.getSymbol('_libraryGetter', lm),
- MirrorSystem.getSymbol('_librarySetter=', lm),
- MirrorSystem.getSymbol('_libraryMethod', lm),
- #Predicate, /// 01: ok
- #Superclass, /// 01: continued
- #Interface, /// 01: continued
- #Mixin, /// 01: continued
- #Class, /// 01: continued
- MirrorSystem.getSymbol('_PrivateClass', lm), /// 01: continued
- #ConcreteClass /// 01: continued
- ],
- selectKeys(lm.topLevelMembers, (dm) => true));
-
- Expect.setEquals(
- [#libraryVariable,
- const Symbol('libraryVariable='),
- MirrorSystem.getSymbol('_libraryVariable', lm),
- MirrorSystem.getSymbol('_libraryVariable=', lm),
- #Predicate, /// 01: continued
- #Superclass, /// 01: continued
- #Interface, /// 01: continued
- #Mixin, /// 01: continued
- #Class, /// 01: continued
- MirrorSystem.getSymbol('_PrivateClass', lm), /// 01: continued
- #ConcreteClass /// 01: continued
- ],
- selectKeys(lm.topLevelMembers, (dm) => dm.isSynthetic));
-}
« no previous file with comments | « tests/lib/mirrors/synthetic_accessor_properties_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698