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
|
+ }); |
+} |