| 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; | 5 library test.runner.browser.polymer; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'package:glob/glob.dart'; | 9 import 'package:glob/glob.dart'; |
| 10 import 'package:path/path.dart' as p; | 10 import 'package:path/path.dart' as p; |
| 11 import 'package:pub_semver/pub_semver.dart'; | |
| 12 import 'package:yaml/yaml.dart'; | 11 import 'package:yaml/yaml.dart'; |
| 13 | 12 |
| 14 /// Whether the package being tested uses the Polymer transforemrs at all. | 13 /// Whether the package being tested uses the Polymer transforemrs at all. |
| 15 /// | 14 /// |
| 16 /// This will be `null` until [_initialize] is called. | 15 /// This will be `null` until [_initialize] is called. |
| 17 bool _usesPolymer; | 16 bool _usesPolymer; |
| 18 | 17 |
| 19 /// The set of entry points passed in to the polymer transformer's config. | 18 /// The set of entry points passed in to the polymer transformer's config. |
| 20 /// | 19 /// |
| 21 /// This will be `null` if no entrypoints are declared, indicating that all | 20 /// This will be `null` if no entrypoints are declared, indicating that all |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 var field = configuration[name]; | 98 var field = configuration[name]; |
| 100 | 99 |
| 101 if (field is String) { | 100 if (field is String) { |
| 102 return new Set.from([new Glob(field, context: p.url, recursive: true)]); | 101 return new Set.from([new Glob(field, context: p.url, recursive: true)]); |
| 103 } | 102 } |
| 104 | 103 |
| 105 return new Set.from(field.map((node) { | 104 return new Set.from(field.map((node) { |
| 106 return new Glob(node, context: p.url, recursive: true); | 105 return new Glob(node, context: p.url, recursive: true); |
| 107 })); | 106 })); |
| 108 } | 107 } |
| OLD | NEW |