OLD | NEW |
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 @TestOn('vm') |
4 library web_components.test.build.mirrors_remover_test; | 5 library web_components.test.build.mirrors_remover_test; |
5 | 6 |
6 import 'package:code_transformers/tests.dart'; | 7 import 'package:transformer_test/utils.dart'; |
7 import 'package:web_components/build/mirrors_remover.dart'; | 8 import 'package:web_components/build/mirrors_remover.dart'; |
8 import 'package:unittest/compact_vm_config.dart'; | 9 import 'package:test/test.dart'; |
9 import 'package:unittest/unittest.dart'; | |
10 | 10 |
11 main() { | 11 main() { |
12 useCompactVMConfiguration(); | |
13 | |
14 var transformer = new MirrorsRemoverTransformer(); | 12 var transformer = new MirrorsRemoverTransformer(); |
15 var phases = [[transformer]]; | 13 var phases = [ |
| 14 [transformer] |
| 15 ]; |
16 | 16 |
17 testPhases('basic', phases, { | 17 testPhases('basic', phases, { |
18 'a|lib/src/init.dart': ''' | 18 'a|lib/src/init.dart': ''' |
19 libary web_components.init; | 19 libary web_components.init; |
20 | 20 |
21 import 'src/mirror_initializer.dart' as init; | 21 import 'src/mirror_initializer.dart' as init; |
22 export 'src/mirror_initializer.dart' show deployMode; | 22 export 'src/mirror_initializer.dart' show deployMode; |
23 | 23 |
24 foo() {} | 24 foo() {} |
25 ''', | 25 ''', |
26 }, { | 26 }, { |
27 'a|lib/src/init.dart': ''' | 27 'a|lib/src/init.dart': ''' |
28 libary web_components.init; | 28 libary web_components.init; |
29 | 29 |
30 import 'src/static_initializer.dart' as init; | 30 import 'src/static_initializer.dart' as init; |
31 export 'src/static_initializer.dart' show deployMode; | 31 export 'src/static_initializer.dart' show deployMode; |
32 | 32 |
33 foo() {} | 33 foo() {} |
34 ''', | 34 ''', |
35 }, []); | 35 }, messages: []); |
36 } | 36 } |
OLD | NEW |