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

Unified Diff: test/build/common.dart

Issue 882823003: Adds @HtmlImport with both dynamic and transformer based implementations. Still need an HtmlInliner… (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: Created 5 years, 11 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
Index: test/build/common.dart
diff --git a/test/build/common.dart b/test/build/common.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1fbd5dbcfdeb4ec04a7227ec565192cae69d4344
--- /dev/null
+++ b/test/build/common.dart
@@ -0,0 +1,17 @@
+// 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.common;
+
+import 'package:barback/barback.dart';
+import 'package:code_transformers/src/test_harness.dart';
Jennifer Messerly 2015/01/29 21:32:38 should code_transformers export this as a public l
jakemac 2015/02/02 20:55:57 Heh yes there is, I was copying the pattern from p
+import 'package:unittest/unittest.dart';
+
+testPhases(String testName, List<List<Transformer>> phases,
+ Map<String, String> inputFiles, Map<String, String> expectedFiles,
+ [List<String> expectedMessages]) {
+ test(testName, () {
+ var helper = new TestHelper(phases, inputFiles, expectedMessages)..run();
+ return helper.checkAll(expectedFiles).whenComplete(() => helper.tearDown());
Jennifer Messerly 2015/01/29 21:32:38 `() => helper.tearDown()` replace with `helper.tea
jakemac 2015/02/02 20:55:57 This is gone now
+ });
+}

Powered by Google App Engine
This is Rietveld 408576698