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 polymer.test.transform.code_extractor_test; | 5 library polymer.test.build.code_extractor_test; |
6 | 6 |
7 import 'package:polymer/src/transform/code_extractor.dart'; | 7 import 'package:polymer/src/build/code_extractor.dart'; |
8 import 'package:polymer/src/transform/common.dart'; | 8 import 'package:polymer/src/build/common.dart'; |
9 import 'package:unittest/compact_vm_config.dart'; | 9 import 'package:unittest/compact_vm_config.dart'; |
10 | 10 |
11 import 'common.dart'; | 11 import 'common.dart'; |
12 | 12 |
13 void main() { | 13 void main() { |
14 useCompactVMConfiguration(); | 14 useCompactVMConfiguration(); |
15 var phases = [[new InlineCodeExtractor(new TransformOptions())]]; | 15 var phases = [[new InlineCodeExtractor(new TransformOptions())]]; |
16 | 16 |
17 testPhases('no changes', phases, { | 17 testPhases('no changes', phases, { |
18 'a|web/test.html': '<!DOCTYPE html><html></html>', | 18 'a|web/test.html': '<!DOCTYPE html><html></html>', |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 'a|web/test.html.0.dart': | 103 'a|web/test.html.0.dart': |
104 'library web_test_html_0;\nmain1() { }', | 104 'library web_test_html_0;\nmain1() { }', |
105 | 105 |
106 'a|web/test.html.1.dart': | 106 'a|web/test.html.1.dart': |
107 'library web_test_html_1;\nmain2() { }', | 107 'library web_test_html_1;\nmain2() { }', |
108 | 108 |
109 'a|web/test.html.2.dart': | 109 'a|web/test.html.2.dart': |
110 'library web_test_html_2;\nmain3() { }', | 110 'library web_test_html_2;\nmain3() { }', |
111 }); | 111 }); |
112 } | 112 } |
OLD | NEW |