| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 smoke.test.mirrors_test; | 5 library smoke.test.mirrors_test; |
| 6 | 6 |
| 7 import 'package:smoke/mirrors.dart'; | 7 import 'package:smoke/mirrors.dart'; |
| 8 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 9 import 'common.dart' hide main; | 9 import 'common.dart' hide main; |
| 10 import 'common.dart' as common show main; | 10 import 'common.dart' as common show main; |
| 11 | 11 |
| 12 | |
| 13 @MirrorsUsed( | 12 @MirrorsUsed( |
| 14 targets: const [A, B, C, D, E, E2, F, F2, G, H, Type], | 13 targets: const [A, B, C, D, E, E2, F, F2, G, H, Type], |
| 15 override: 'smoke.mirrors') | 14 override: 'smoke.mirrors') |
| 16 import 'dart:mirrors'; | 15 import 'dart:mirrors'; |
| 17 | 16 |
| 18 main() { | 17 main() { |
| 19 setUp(useMirrors); | 18 setUp(useMirrors); |
| 20 common.main(); | 19 common.main(); |
| 21 } | 20 } |
| OLD | NEW |