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

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

Issue 2727323002: Add @MirrorsUsed annotations to speed up tests. (Closed)
Patch Set: Minor fixes. Created 3 years, 9 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 unified diff | Download patch
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 lib;
6
5 import 'package:expect/expect.dart'; 7 import 'package:expect/expect.dart';
8
9 @MirrorsUsed(targets: "lib")
6 import 'dart:mirrors'; 10 import 'dart:mirrors';
7 11
8 12
9 class A<T> {} 13 class A<T> {}
10 class B extends A<U>{} 14 class B extends A<U>{}
11 class C extends A<C> {} 15 class C extends A<C> {}
12 class D<T> extends A<T> {} 16 class D<T> extends A<T> {}
13 class E<X,Y> extends G<H<Y>> {} 17 class E<X,Y> extends G<H<Y>> {}
14 class F<X> implements A<X> {} 18 class F<X> implements A<X> {}
15 class FF<X,Y> implements G<H<Y>> {} 19 class FF<X,Y> implements G<H<Y>> {}
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 void testObject() { 115 void testObject() {
112 ClassMirror object = reflectClass(Object); 116 ClassMirror object = reflectClass(Object);
113 Expect.equals(null, object.superclass); 117 Expect.equals(null, object.superclass);
114 } 118 }
115 119
116 main() { 120 main() {
117 testOriginals(); 121 testOriginals();
118 testInstances(); 122 testInstances();
119 testObject(); 123 testObject();
120 } 124 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/generic_mixin_test.dart ('k') | tests/lib/mirrors/generics_double_substitution_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698