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

Unified Diff: tests/lib/mirrors/mirrors_nsm_mismatch_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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/lib/mirrors/mirror_in_static_init_test.dart ('k') | tests/lib/mirrors/mirrors_nsm_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/mirrors_nsm_mismatch_test.dart
diff --git a/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart b/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart
index 5c63ca1dfc266914a28c9668bd1db9bb05ab043c..9b92458a46e5e3603b7ee6845ddf46864d8e4d2a 100644
--- a/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart
+++ b/tests/lib/mirrors/mirrors_nsm_mismatch_test.dart
@@ -2,8 +2,9 @@
// 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.mirrors_nsm_mistatch;
+library test.mirrors_nsm_mismatch;
+@MirrorsUsed(targets: "test.mirrors_nsm_mismatch")
import 'dart:mirrors';
import 'mirrors_nsm_test.dart';
@@ -17,7 +18,7 @@ class C {
main() {
var mirrors = currentMirrorSystem();
- var libMirror = mirrors.findLibrary(#test.mirrors_nsm_mistatch);
+ var libMirror = mirrors.findLibrary(#test.mirrors_nsm_mismatch);
expectMatchingErrors(() => libMirror.invoke(#topLevelMethod, [], {#extra: 1}),
() => topLevelMethod(extra: 1));
expectMatchingErrors(() => libMirror.invoke(#topLevelMethod, ['positional']),
« no previous file with comments | « tests/lib/mirrors/mirror_in_static_init_test.dart ('k') | tests/lib/mirrors/mirrors_nsm_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698