| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 code_transformers.test.resolver_test; | 5 library code_transformers.test.resolver_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:io' show File, Platform; | |
| 9 | 8 |
| 10 import 'package:barback/barback.dart'; | 9 import 'package:barback/barback.dart'; |
| 11 import 'package:code_transformers/resolver.dart'; | 10 import 'package:code_transformers/resolver.dart'; |
| 12 import 'package:code_transformers/tests.dart'; | 11 import 'package:code_transformers/tests.dart'; |
| 13 import 'package:path/path.dart' as path; | |
| 14 import 'package:unittest/compact_vm_config.dart'; | 12 import 'package:unittest/compact_vm_config.dart'; |
| 15 import 'package:unittest/unittest.dart'; | 13 import 'package:unittest/unittest.dart'; |
| 16 | 14 |
| 17 main() { | 15 main() { |
| 18 useCompactVMConfiguration(); | 16 useCompactVMConfiguration(); |
| 19 var entryPoint = new AssetId('a', 'web/main.dart'); | 17 var entryPoint = new AssetId('a', 'web/main.dart'); |
| 20 var resolvers = new Resolvers(testingDartSdkDirectory); | 18 var resolvers = new Resolvers(testingDartSdkDirectory); |
| 21 | 19 |
| 22 Future validateResolver({Map<String, String> inputs, void validator(Resolver), | 20 Future validateResolver({Map<String, String> inputs, void validator(Resolver), |
| 23 List<String> messages: const[]}) { | 21 List<String> messages: const[]}) { |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 this.resolvers = resolvers; | 343 this.resolvers = resolvers; |
| 346 } | 344 } |
| 347 | 345 |
| 348 Future<bool> isPrimary(Asset input) => | 346 Future<bool> isPrimary(Asset input) => |
| 349 new Future.value(input.id == primary); | 347 new Future.value(input.id == primary); |
| 350 | 348 |
| 351 applyResolver(Transform transform, Resolver resolver) { | 349 applyResolver(Transform transform, Resolver resolver) { |
| 352 return validator(resolver); | 350 return validator(resolver); |
| 353 } | 351 } |
| 354 } | 352 } |
| OLD | NEW |