Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: pkg/polymer/test/build/all_phases_test.dart

Issue 575503002: When inlining imports from head, put them inside a hidden div (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: move/clarify comment Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/polymer/lib/src/build/linter.dart ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.all_phases_test; 5 library polymer.test.build.all_phases_test;
6 6
7 import 'package:code_transformers/tests.dart' show testingDartSdkDirectory; 7 import 'package:code_transformers/tests.dart' show testingDartSdkDirectory;
8 import 'package:polymer/src/build/common.dart'; 8 import 'package:polymer/src/build/common.dart';
9 import 'package:polymer/src/build/messages.dart'; 9 import 'package:polymer/src/build/messages.dart';
10 import 'package:polymer/src/build/script_compactor.dart' show MAIN_HEADER; 10 import 'package:polymer/src/build/script_compactor.dart' show MAIN_HEADER;
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 '<link rel="import" href="../../packages/polymer/polymer.html">' 193 '<link rel="import" href="../../packages/polymer/polymer.html">'
194 '</head><body>' 194 '</head><body>'
195 '<polymer-element name="x-a">1' 195 '<polymer-element name="x-a">1'
196 '<script type="application/dart">' 196 '<script type="application/dart">'
197 '${_sampleInput("A", "foo")}</script>' 197 '${_sampleInput("A", "foo")}</script>'
198 '</polymer-element></html>', 198 '</polymer-element></html>',
199 }, { 199 }, {
200 'a|web/index.html': 200 'a|web/index.html':
201 '<!DOCTYPE html><html><head>' 201 '<!DOCTYPE html><html><head>'
202 '$WEB_COMPONENTS_TAG' 202 '$WEB_COMPONENTS_TAG'
203 '</head><body><polymer-element name="x-a">1</polymer-element>' 203 '</head><body>'
204 '<div hidden="">'
205 '<polymer-element name="x-a">1</polymer-element>'
206 '</div>'
204 '<script src="index.html_bootstrap.dart.js" async=""></script>' 207 '<script src="index.html_bootstrap.dart.js" async=""></script>'
205 '</body></html>', 208 '</body></html>',
206 'a|web/index.html_bootstrap.dart': 209 'a|web/index.html_bootstrap.dart':
207 '''$MAIN_HEADER 210 '''$MAIN_HEADER
208 import 'index.html.0.dart' as i0; 211 import 'index.html.0.dart' as i0;
209 import 'b.dart' as i1; 212 import 'b.dart' as i1;
210 ${DEFAULT_IMPORTS.join('\n')} 213 ${DEFAULT_IMPORTS.join('\n')}
211 import 'index.html.0.dart' as smoke_0; 214 import 'index.html.0.dart' as smoke_0;
212 import 'package:polymer/polymer.dart' as smoke_1; 215 import 'package:polymer/polymer.dart' as smoke_1;
213 import 'b.dart' as smoke_2; 216 import 'b.dart' as smoke_2;
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 '<script type="application/dart">' 255 '<script type="application/dart">'
253 '${_sampleInput("A", "foo")}</script>' 256 '${_sampleInput("A", "foo")}</script>'
254 '</polymer-element></html>', 257 '</polymer-element></html>',
255 'a|lib/load_b.html': 258 'a|lib/load_b.html':
256 '<!DOCTYPE html><html><head></head><body>' 259 '<!DOCTYPE html><html><head></head><body>'
257 '<script type="application/dart" src="b.dart"></script>', 260 '<script type="application/dart" src="b.dart"></script>',
258 }, { 261 }, {
259 'a|web/index.html': 262 'a|web/index.html':
260 '<!DOCTYPE html><html><head>' 263 '<!DOCTYPE html><html><head>'
261 '$WEB_COMPONENTS_TAG' 264 '$WEB_COMPONENTS_TAG'
262 '</head><body><polymer-element name="x-a">1</polymer-element>' 265 '</head><body>'
266 '<div hidden="">'
267 '<polymer-element name="x-a">1</polymer-element>'
268 '</div>'
263 '<script src="index.html_bootstrap.dart.js" async=""></script>' 269 '<script src="index.html_bootstrap.dart.js" async=""></script>'
264 '</body></html>', 270 '</body></html>',
265 'a|web/index.html_bootstrap.dart': 271 'a|web/index.html_bootstrap.dart':
266 '''$MAIN_HEADER 272 '''$MAIN_HEADER
267 import 'index.html.0.dart' as i0; 273 import 'index.html.0.dart' as i0;
268 import 'package:a/b.dart' as i1; 274 import 'package:a/b.dart' as i1;
269 ${DEFAULT_IMPORTS.join('\n')} 275 ${DEFAULT_IMPORTS.join('\n')}
270 import 'index.html.0.dart' as smoke_0; 276 import 'index.html.0.dart' as smoke_0;
271 import 'package:polymer/polymer.dart' as smoke_1; 277 import 'package:polymer/polymer.dart' as smoke_1;
272 import 'package:a/b.dart' as smoke_2; 278 import 'package:a/b.dart' as smoke_2;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 } 338 }
333 339
334 @CustomTag('x-$className') 340 @CustomTag('x-$className')
335 class X${className} extends PolymerElement { 341 class X${className} extends PolymerElement {
336 X${className}.created() : super.created(); 342 X${className}.created() : super.created();
337 } 343 }
338 @initMethod m_$fieldName() {} 344 @initMethod m_$fieldName() {}
339 main() {} 345 main() {}
340 '''; 346 ''';
341 } 347 }
OLDNEW
« no previous file with comments | « pkg/polymer/lib/src/build/linter.dart ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698