Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Unified Diff: test/build/mirrors_remover_test.dart

Issue 1026153002: add initWebComponents (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: code review updates Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pubspec.yaml ('k') | test/custom_element_proxy_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {}
+ ''',
+ }, []);
+}
« no previous file with comments | « pubspec.yaml ('k') | test/custom_element_proxy_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698