OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 library web_components.test.build.mirrors_remover_test; |
| 5 |
| 6 import 'package:code_transformers/tests.dart'; |
| 7 import 'package:web_components/build/mirrors_remover.dart'; |
| 8 import 'package:unittest/compact_vm_config.dart'; |
| 9 import 'package:unittest/unittest.dart'; |
| 10 |
| 11 main() { |
| 12 useCompactVMConfiguration(); |
| 13 |
| 14 var transformer = new MirrorsRemoverTransformer(); |
| 15 var phases = [[transformer]]; |
| 16 |
| 17 testPhases('basic', phases, { |
| 18 'a|lib/src/init.dart': ''' |
| 19 libary web_components.init; |
| 20 |
| 21 import 'src/mirror_initializer.dart'; |
| 22 |
| 23 foo() {} |
| 24 ''', |
| 25 }, { |
| 26 'a|lib/src/init.dart': ''' |
| 27 libary web_components.init; |
| 28 |
| 29 import 'src/static_initializer.dart'; |
| 30 |
| 31 foo() {} |
| 32 ''', |
| 33 }, []); |
| 34 } |
OLD | NEW |