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.common; | |
5 | |
6 import 'package:barback/barback.dart'; | |
7 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
| |
8 import 'package:unittest/unittest.dart'; | |
9 | |
10 testPhases(String testName, List<List<Transformer>> phases, | |
11 Map<String, String> inputFiles, Map<String, String> expectedFiles, | |
12 [List<String> expectedMessages]) { | |
13 test(testName, () { | |
14 var helper = new TestHelper(phases, inputFiles, expectedMessages)..run(); | |
15 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
| |
16 }); | |
17 } | |
OLD | NEW |