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 // TODO(jmesserly): merge into import_inliner_test.dart. | 5 // TODO(jmesserly): merge into import_inliner_test.dart. |
6 // Keeping here for now so it's easier to see the diff. | 6 // Keeping here for now so it's easier to see the diff. |
7 part of polymer.test.build.import_inliner_test; | 7 part of polymer.test.build.import_inliner_test; |
8 | 8 |
9 void codeExtractorTests() { | 9 void codeExtractorTests() { |
10 testPhases('no changes', phases, { | 10 testPhases('no changes', phases, { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 '<script type="application/dart">main3() { }', | 80 '<script type="application/dart">main3() { }', |
81 'b|lib/test.html': | 81 'b|lib/test.html': |
82 '<script type="application/dart">main4() { }' | 82 '<script type="application/dart">main4() { }' |
83 }, { | 83 }, { |
84 'a|web/test.html': | 84 'a|web/test.html': |
85 '<html><head></head><body></body></html>', | 85 '<html><head></head><body></body></html>', |
86 'a|web/test.html._data': expectedData(["web/test.html.0.dart", | 86 'a|web/test.html._data': expectedData(["web/test.html.0.dart", |
87 "web/test.html.1.dart", "web/test.html.2.dart", | 87 "web/test.html.1.dart", "web/test.html.2.dart", |
88 "web/test.html.3.dart"]), | 88 "web/test.html.3.dart"]), |
89 'a|web/test.html.0.dart': 'library a.web.test2_html_0;\nmain1() { }', | 89 'a|web/test.html.0.dart': 'library a.web.test2_html_0;\nmain1() { }', |
90 'a|web/test.html.1.dart': 'library a.web.bar.test_html_1;\nmain2() { }', | 90 'a|web/test.html.1.dart': 'library a.web.bar.test_html_0;\nmain2() { }', |
91 'a|web/test.html.2.dart': 'library a.foo.test_html_2;\nmain3() { }', | 91 'a|web/test.html.2.dart': 'library a.foo.test_html_0;\nmain3() { }', |
92 'a|web/test.html.3.dart': 'library b.test_html_3;\nmain4() { }' | 92 'a|web/test.html.3.dart': 'library b.test_html_0;\nmain4() { }' |
93 }); | 93 }); |
94 | 94 |
95 testPhases('experimental bootstrap', phases, { | 95 testPhases('experimental bootstrap', phases, { |
96 'a|web/test.html': | 96 'a|web/test.html': |
97 '<link rel="import" ' | 97 '<link rel="import" ' |
98 'href="packages/polymer/polymer_experimental.html">' | 98 'href="packages/polymer/polymer_experimental.html">' |
99 '<link rel="import" href="test2.html">', | 99 '<link rel="import" href="test2.html">', |
100 'a|web/test2.html': | 100 'a|web/test2.html': |
101 '<script type="application/dart">main1() { }', | 101 '<script type="application/dart">main1() { }', |
102 }, { | 102 }, { |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 '</body></html>', | 264 '</body></html>', |
265 'a|web/a.dart': 'main() {}', | 265 'a|web/a.dart': 'main() {}', |
266 'a|web/c.dart': 'main() {}', | 266 'a|web/c.dart': 'main() {}', |
267 }, { | 267 }, { |
268 'a|web/test.html._data': expectedData(['web/a.dart', 'web/c.dart']), | 268 'a|web/test.html._data': expectedData(['web/a.dart', 'web/c.dart']), |
269 }, [ | 269 }, [ |
270 'warning: Script file at "b.dart" not found. (web/test.html 1 0)', | 270 'warning: Script file at "b.dart" not found. (web/test.html 1 0)', |
271 'warning: Script file at "d.dart" not found. (web/test.html 3 0)', | 271 'warning: Script file at "d.dart" not found. (web/test.html 3 0)', |
272 ]); | 272 ]); |
273 } | 273 } |
OLD | NEW |