| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |