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

Side by Side Diff: tests/lib/mirrors/toplevel_members_test.dart

Issue 111643012: Partially implement LibraryMirror.topLevelMembers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/lib/mirrors/synthetic_accessor_properties_test.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.toplevel_members; 5 library test.toplevel_members;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 import 'package:expect/expect.dart'; 8 import 'package:expect/expect.dart';
9 9
10 import 'stringify.dart'; 10 import 'stringify.dart';
(...skipping 11 matching lines...) Expand all
22 [#libraryVariable, 22 [#libraryVariable,
23 const Symbol('libraryVariable='), 23 const Symbol('libraryVariable='),
24 #libraryGetter, 24 #libraryGetter,
25 const Symbol('librarySetter='), 25 const Symbol('librarySetter='),
26 #libraryMethod, 26 #libraryMethod,
27 MirrorSystem.getSymbol('_libraryVariable', lm), 27 MirrorSystem.getSymbol('_libraryVariable', lm),
28 MirrorSystem.getSymbol('_libraryVariable=', lm), 28 MirrorSystem.getSymbol('_libraryVariable=', lm),
29 MirrorSystem.getSymbol('_libraryGetter', lm), 29 MirrorSystem.getSymbol('_libraryGetter', lm),
30 MirrorSystem.getSymbol('_librarySetter=', lm), 30 MirrorSystem.getSymbol('_librarySetter=', lm),
31 MirrorSystem.getSymbol('_libraryMethod', lm), 31 MirrorSystem.getSymbol('_libraryMethod', lm),
32 #Predicate, 32 #Predicate, /// 01: ok
33 #Superclass, 33 #Superclass, /// 01: continued
34 #Interface, 34 #Interface, /// 01: continued
35 #Mixin, 35 #Mixin, /// 01: continued
36 #Class, 36 #Class, /// 01: continued
37 MirrorSystem.getSymbol('_PrivateClass', lm), 37 MirrorSystem.getSymbol('_PrivateClass', lm), /// 01: continued
38 #ConcreteClass], 38 #ConcreteClass /// 01: continued
39 ],
39 selectKeys(lm.topLevelMembers, (dm) => true)); 40 selectKeys(lm.topLevelMembers, (dm) => true));
40 41
41 Expect.setEquals( 42 Expect.setEquals(
42 [#libraryVariable, 43 [#libraryVariable,
43 const Symbol('libraryVariable='), 44 const Symbol('libraryVariable='),
44 MirrorSystem.getSymbol('_libraryVariable', lm), 45 MirrorSystem.getSymbol('_libraryVariable', lm),
45 MirrorSystem.getSymbol('_libraryVariable=', lm), 46 MirrorSystem.getSymbol('_libraryVariable=', lm),
46 #Predicate, 47 #Predicate, /// 01: continued
47 #Superclass, 48 #Superclass, /// 01: continued
48 #Interface, 49 #Interface, /// 01: continued
49 #Mixin, 50 #Mixin, /// 01: continued
50 #Class, 51 #Class, /// 01: continued
51 MirrorSystem.getSymbol('_PrivateClass', lm), 52 MirrorSystem.getSymbol('_PrivateClass', lm), /// 01: continued
52 #ConcreteClass], 53 #ConcreteClass /// 01: continued
54 ],
53 selectKeys(lm.topLevelMembers, (dm) => dm.isSynthetic)); 55 selectKeys(lm.topLevelMembers, (dm) => dm.isSynthetic));
54 } 56 }
OLDNEW
« 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