OLD | NEW |
1 library angular2.test; | 1 library angular2.test.transform; |
2 | 2 |
3 import 'dart:io'; | 3 import 'dart:io'; |
4 import 'package:barback/barback.dart'; | 4 import 'package:barback/barback.dart'; |
5 import 'package:angular2/transformer.dart'; | 5 import 'package:angular2/transformer.dart'; |
6 import 'package:code_transformers/tests.dart'; | 6 import 'package:code_transformers/tests.dart'; |
7 import 'package:dart_style/dart_style.dart'; | 7 import 'package:dart_style/dart_style.dart'; |
8 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
9 import 'package:unittest/vm_config.dart'; | 9 import 'package:unittest/vm_config.dart'; |
10 | 10 |
11 import 'common.dart'; | 11 import 'common.dart'; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 config.assetPathToExpectedOutputPath[key] = cache.putIfAbsent(value, () { | 117 config.assetPathToExpectedOutputPath[key] = cache.putIfAbsent(value, () { |
118 var code = new File(value).readAsStringSync(); | 118 var code = new File(value).readAsStringSync(); |
119 return value.endsWith('dart') ? formatter.format(code) : code; | 119 return value.endsWith('dart') ? formatter.format(code) : code; |
120 }); | 120 }); |
121 }); | 121 }); |
122 testPhases(config.name, [ | 122 testPhases(config.name, [ |
123 [transform] | 123 [transform] |
124 ], config.assetPathToInputPath, config.assetPathToExpectedOutputPath, []); | 124 ], config.assetPathToInputPath, config.assetPathToExpectedOutputPath, []); |
125 } | 125 } |
126 } | 126 } |
OLD | NEW |