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.build.import_inliner_test; | 5 library polymer.test.build.import_inliner_test; |
6 | 6 |
7 import 'dart:convert' show JSON; | 7 import 'dart:convert' show JSON; |
8 import 'package:polymer/src/build/common.dart'; | 8 import 'package:polymer/src/build/common.dart'; |
9 import 'package:polymer/src/build/import_inliner.dart'; | 9 import 'package:polymer/src/build/import_inliner.dart'; |
10 import 'package:unittest/compact_vm_config.dart'; | 10 import 'package:unittest/compact_vm_config.dart'; |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 'a|web/test.html': | 140 'a|web/test.html': |
141 '<!DOCTYPE html><html><head>' | 141 '<!DOCTYPE html><html><head>' |
142 '</head><body>' | 142 '</head><body>' |
143 '<script type="text/javascript">/*first*/</script>' | 143 '<script type="text/javascript">/*first*/</script>' |
144 '<script src="second.js"></script>' | 144 '<script src="second.js"></script>' |
145 '<script>/*third*/</script>' | 145 '<script>/*third*/</script>' |
146 '<polymer-element>2</polymer-element>' | 146 '<polymer-element>2</polymer-element>' |
147 '</body></html>', | 147 '</body></html>', |
148 'a|web/test.html._data': expectedData([ | 148 'a|web/test.html._data': expectedData([ |
149 'web/test.html.1.dart','web/test.html.0.dart']), | 149 'web/test.html.1.dart','web/test.html.0.dart']), |
150 'a|web/test.html.1.dart': 'library a.web.test2_html_1;\n/*forth*/', | 150 'a|web/test.html.1.dart': 'library a.web.test2_html_0;\n/*forth*/', |
151 'a|web/test.html.0.dart': 'library a.web.test_html_0;\n/*fifth*/', | 151 'a|web/test.html.0.dart': 'library a.web.test_html_0;\n/*fifth*/', |
152 'a|web/test2.html': | 152 'a|web/test2.html': |
153 '<!DOCTYPE html><html><head></head><body><script>/*third*/</script>' | 153 '<!DOCTYPE html><html><head></head><body><script>/*third*/</script>' |
154 '<polymer-element>2</polymer-element></body></html>', | 154 '<polymer-element>2</polymer-element></body></html>', |
155 'a|web/test2.html._data': expectedData(['web/test2.html.0.dart']), | 155 'a|web/test2.html._data': expectedData(['web/test2.html.0.dart']), |
156 'a|web/test2.html.0.dart': 'library a.web.test2_html_0;\n/*forth*/', | 156 'a|web/test2.html.0.dart': 'library a.web.test2_html_0;\n/*forth*/', |
157 'a|web/second.js': '/*second*/' | 157 'a|web/second.js': '/*second*/' |
158 }); | 158 }); |
159 | 159 |
160 testPhases('no transformation outside web/', phases, | 160 testPhases('no transformation outside web/', phases, |
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
733 '<!DOCTYPE html><html><head></head><body>' | 733 '<!DOCTYPE html><html><head></head><body>' |
734 '<style>.first { color: black }</style>' | 734 '<style>.first { color: black }</style>' |
735 '<style>h1 { font-size: 70px; }</style>' | 735 '<style>h1 { font-size: 70px; }</style>' |
736 '<style>.second { color: black }</style>' | 736 '<style>.second { color: black }</style>' |
737 '</body></html>', | 737 '</body></html>', |
738 'a|web/test.html._data': EMPTY_DATA, | 738 'a|web/test.html._data': EMPTY_DATA, |
739 'a|web/test2.css': | 739 'a|web/test2.css': |
740 'h1 { font-size: 70px; }', | 740 'h1 { font-size: 70px; }', |
741 }); | 741 }); |
742 } | 742 } |
OLD | NEW |