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

Side by Side Diff: tests/lib/mirrors/invoke_named_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 test.invoke_named_test; 5 library test.invoke_named_test;
6 6
7 @MirrorsUsed(targets: "test.invoke_named_test")
7 import 'dart:mirrors'; 8 import 'dart:mirrors';
8 9
9 import 'dart:async' show Future; 10 import 'dart:async' show Future;
10 11
11 import 'package:expect/expect.dart'; 12 import 'package:expect/expect.dart';
12 import 'invoke_test.dart'; 13 import 'invoke_test.dart';
13 14
14 // TODO(ahe): Remove this variable (http://dartbug.com/12863). 15 // TODO(ahe): Remove this variable (http://dartbug.com/12863).
15 bool isDart2js = false; 16 bool isDart2js = false;
16 17
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 if (isDart2js) return; 289 if (isDart2js) return;
289 290
290 testSyncInvoke(reflectClass(D)); // ClassMirror 291 testSyncInvoke(reflectClass(D)); // ClassMirror
291 LibraryMirror lib = reflectClass(D).owner; 292 LibraryMirror lib = reflectClass(D).owner;
292 testSyncInvoke(lib); // LibraryMirror 293 testSyncInvoke(lib); // LibraryMirror
293 294
294 testSyncNewInstance(); 295 testSyncNewInstance();
295 296
296 testSyncApply(); 297 testSyncApply();
297 } 298 }
OLDNEW
« no previous file with comments | « tests/lib/mirrors/invoke_closurization_test.dart ('k') | tests/lib/mirrors/invoke_private_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698