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

Side by Side Diff: tests/lib/mirrors/class_mirror_location_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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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
5 library test.class_location; 4 library test.class_location;
6 5
6 @MirrorsUsed(targets: "test.class_location")
7 import "dart:mirrors"; 7 import "dart:mirrors";
8 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
9 9
10 part 'class_mirror_location_other.dart'; 10 part 'class_mirror_location_other.dart';
11 11
12 class ClassInMainFile {} 12 class ClassInMainFile {}
13 class SpaceIndentedInMainFile {} 13 class SpaceIndentedInMainFile {}
14 class TabIndentedInMainFile {} 14 class TabIndentedInMainFile {}
15 15
16 abstract class AbstractClass {} 16 abstract class AbstractClass {}
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // Another part. 60 // Another part.
61 expectLocation(reflectClass(ClassInOtherFile), otherSuffix, 7, 1); 61 expectLocation(reflectClass(ClassInOtherFile), otherSuffix, 7, 1);
62 expectLocation(reflectClass(SpaceIndentedInOtherFile), otherSuffix, 9, 3); 62 expectLocation(reflectClass(SpaceIndentedInOtherFile), otherSuffix, 9, 3);
63 expectLocation(reflectClass(TabIndentedInOtherFile), otherSuffix, 11, 2); 63 expectLocation(reflectClass(TabIndentedInOtherFile), otherSuffix, 11, 2);
64 64
65 // Synthetic classes. 65 // Synthetic classes.
66 Expect.isNull(reflectClass(MA).superclass.location); 66 Expect.isNull(reflectClass(MA).superclass.location);
67 Expect.isNull((reflect(main) as ClosureMirror).type.location); 67 Expect.isNull((reflect(main) as ClosureMirror).type.location);
68 } 68 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/circular_factory_redirection_test.dart ('k') | tests/lib/mirrors/closures_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698