Index: test/build/mirrors_remover_test.dart |
diff --git a/test/build/mirrors_remover_test.dart b/test/build/mirrors_remover_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ab9fa082b0d789b471a5958c9db868d50259883e |
--- /dev/null |
+++ b/test/build/mirrors_remover_test.dart |
@@ -0,0 +1,34 @@ |
+// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+library web_components.test.build.mirrors_remover_test; |
+ |
+import 'package:code_transformers/tests.dart'; |
+import 'package:web_components/build/mirrors_remover.dart'; |
+import 'package:unittest/compact_vm_config.dart'; |
+import 'package:unittest/unittest.dart'; |
+ |
+main() { |
+ useCompactVMConfiguration(); |
+ |
+ var transformer = new MirrorsRemoverTransformer(); |
+ var phases = [[transformer]]; |
+ |
+ testPhases('basic', phases, { |
+ 'a|lib/src/init.dart': ''' |
+ libary web_components.init; |
+ |
+ import 'src/mirror_initializer.dart'; |
+ |
+ foo() {} |
+ ''', |
+ }, { |
+ 'a|lib/src/init.dart': ''' |
+ libary web_components.init; |
+ |
+ import 'src/static_initializer.dart'; |
+ |
+ foo() {} |
+ ''', |
+ }, []); |
+} |