| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 library initialize.test.build.common; | 4 library initialize.test.build.common; |
| 5 | 5 |
| 6 import 'package:barback/barback.dart'; | 6 import 'package:barback/barback.dart'; |
| 7 import 'package:code_transformers/src/test_harness.dart'; | 7 import 'package:transformer_test/src/test_harness.dart'; |
| 8 import 'package:unittest/unittest.dart'; | 8 import 'package:test/test.dart'; |
| 9 | 9 |
| 10 testPhases(String testName, List<List<Transformer>> phases, | 10 testPhases(String testName, List<List<Transformer>> phases, |
| 11 Map<String, String> inputFiles, Map<String, String> expectedFiles, | 11 Map<String, String> inputFiles, Map<String, String> expectedFiles, |
| 12 [List<String> expectedMessages]) { | 12 [List<String> expectedMessages]) { |
| 13 test(testName, () { | 13 test(testName, () { |
| 14 var helper = new TestHelper(phases, inputFiles, expectedMessages)..run(); | 14 var helper = new TestHelper(phases, inputFiles, expectedMessages)..run(); |
| 15 return helper.checkAll(expectedFiles).whenComplete(() => helper.tearDown()); | 15 return helper.checkAll(expectedFiles).whenComplete(() => helper.tearDown()); |
| 16 }); | 16 }); |
| 17 } | 17 } |
| 18 | 18 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 42 final dynamic _value; | 42 final dynamic _value; |
| 43 const DynamicInit(this._value); | 43 const DynamicInit(this._value); |
| 44 } | 44 } |
| 45 | 45 |
| 46 class NamedArgInit extends Initializer<dynamic> { | 46 class NamedArgInit extends Initializer<dynamic> { |
| 47 final dynamic _first; | 47 final dynamic _first; |
| 48 final dynamic name; | 48 final dynamic name; |
| 49 const NamedArgInit(this._first, {this.name}); | 49 const NamedArgInit(this._first, {this.name}); |
| 50 } | 50 } |
| 51 '''; | 51 '''; |
| OLD | NEW |