OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 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 | 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 test.runner.browser.polymer; | |
6 | |
7 import 'dart:io'; | 5 import 'dart:io'; |
8 | 6 |
9 import 'package:glob/glob.dart'; | 7 import 'package:glob/glob.dart'; |
10 import 'package:path/path.dart' as p; | 8 import 'package:path/path.dart' as p; |
11 import 'package:yaml/yaml.dart'; | 9 import 'package:yaml/yaml.dart'; |
12 | 10 |
13 /// Whether the package being tested uses the Polymer transforemrs at all. | 11 /// Whether the package being tested uses the Polymer transforemrs at all. |
14 /// | 12 /// |
15 /// This will be `null` until [_initialize] is called. | 13 /// This will be `null` until [_initialize] is called. |
16 bool _usesPolymer; | 14 bool _usesPolymer; |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 var field = configuration[name]; | 96 var field = configuration[name]; |
99 | 97 |
100 if (field is String) { | 98 if (field is String) { |
101 return new Set.from([new Glob(field, context: p.url, recursive: true)]); | 99 return new Set.from([new Glob(field, context: p.url, recursive: true)]); |
102 } | 100 } |
103 | 101 |
104 return new Set.from(field.map((node) { | 102 return new Set.from(field.map((node) { |
105 return new Glob(node, context: p.url, recursive: true); | 103 return new Glob(node, context: p.url, recursive: true); |
106 })); | 104 })); |
107 } | 105 } |
OLD | NEW |