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 | 4 |
5 library barback.test.transformer_test; | 5 library barback.test.transformer_test; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:barback/barback.dart'; | 9 import 'package:barback/barback.dart'; |
10 import 'package:barback/src/utils.dart'; | |
11 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
12 | 11 |
13 import 'utils.dart'; | 12 import 'utils.dart'; |
14 | 13 |
15 main() { | 14 main() { |
16 initConfig(); | 15 initConfig(); |
17 | 16 |
18 group("isPrimary", () { | 17 group("isPrimary", () { |
19 test("defaults to allowedExtensions", () { | 18 test("defaults to allowedExtensions", () { |
20 var transformer = new ExtensionTransformer(".txt .bin"); | 19 var transformer = new ExtensionTransformer(".txt .bin"); |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 53 |
55 Future apply(Transform transform) => new Future.value(); | 54 Future apply(Transform transform) => new Future.value(); |
56 } | 55 } |
57 | 56 |
58 class ExtensionTransformer extends Transformer { | 57 class ExtensionTransformer extends Transformer { |
59 final String allowedExtensions; | 58 final String allowedExtensions; |
60 | 59 |
61 ExtensionTransformer(this.allowedExtensions); | 60 ExtensionTransformer(this.allowedExtensions); |
62 | 61 |
63 Future apply(Transform transform) => new Future.value(); | 62 Future apply(Transform transform) => new Future.value(); |
64 } | 63 } |
OLD | NEW |