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

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

Issue 330683003: Use dart.js in release mode to workaround dartbug.com/19653 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/pubspec.yaml ('k') | pkg/polymer/test/build/polyfill_injector_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/linter.dart' show USE_POLYMER_HTML, 9 import 'package:polymer/src/build/linter.dart' show USE_POLYMER_HTML,
10 USE_INIT_DART, ONLY_ONE_TAG; 10 USE_INIT_DART, ONLY_ONE_TAG;
(...skipping 27 matching lines...) Expand all
38 'a|web/test.html': 38 'a|web/test.html':
39 '<!DOCTYPE html><html><head>' 39 '<!DOCTYPE html><html><head>'
40 '<link rel="import" href="packages/polymer/polymer.html">' 40 '<link rel="import" href="packages/polymer/polymer.html">'
41 '<script type="application/dart" src="a.dart"></script>', 41 '<script type="application/dart" src="a.dart"></script>',
42 'a|web/a.dart': _sampleInput('A', 'foo'), 42 'a|web/a.dart': _sampleInput('A', 'foo'),
43 }, { 43 }, {
44 'a|web/test.html': 44 'a|web/test.html':
45 '<!DOCTYPE html><html><head>' 45 '<!DOCTYPE html><html><head>'
46 '$WEB_COMPONENTS_TAG' 46 '$WEB_COMPONENTS_TAG'
47 '</head><body>' 47 '</head><body>'
48 '<script src="test.html_bootstrap.dart.js"></script>' 48 '<script src="test.html_bootstrap.dart.js" async=""></script>'
49 '</body></html>', 49 '</body></html>',
50 50
51 'a|web/test.html_bootstrap.dart': 51 'a|web/test.html_bootstrap.dart':
52 '''$MAIN_HEADER 52 '''$MAIN_HEADER
53 import 'a.dart' as i0; 53 import 'a.dart' as i0;
54 ${DEFAULT_IMPORTS.join('\n')} 54 ${DEFAULT_IMPORTS.join('\n')}
55 import 'a.dart' as smoke_0; 55 import 'a.dart' as smoke_0;
56 import 'package:polymer/polymer.dart' as smoke_1; 56 import 'package:polymer/polymer.dart' as smoke_1;
57 57
58 void main() { 58 void main() {
(...skipping 19 matching lines...) Expand all
78 'a|web/test.html': 78 'a|web/test.html':
79 '<!DOCTYPE html><html><head>' 79 '<!DOCTYPE html><html><head>'
80 '<link rel="import" href="packages/polymer/polymer.html">' 80 '<link rel="import" href="packages/polymer/polymer.html">'
81 '<script type="application/dart">' 81 '<script type="application/dart">'
82 '${_sampleInput("B", "bar")}</script>', 82 '${_sampleInput("B", "bar")}</script>',
83 }, { 83 }, {
84 'a|web/test.html': 84 'a|web/test.html':
85 '<!DOCTYPE html><html><head>' 85 '<!DOCTYPE html><html><head>'
86 '$WEB_COMPONENTS_TAG' 86 '$WEB_COMPONENTS_TAG'
87 '</head><body>' 87 '</head><body>'
88 '<script src="test.html_bootstrap.dart.js"></script>' 88 '<script src="test.html_bootstrap.dart.js" async=""></script>'
89 '</body></html>', 89 '</body></html>',
90 90
91 'a|web/test.html_bootstrap.dart': 91 'a|web/test.html_bootstrap.dart':
92 '''$MAIN_HEADER 92 '''$MAIN_HEADER
93 import 'test.html.0.dart' as i0; 93 import 'test.html.0.dart' as i0;
94 ${DEFAULT_IMPORTS.join('\n')} 94 ${DEFAULT_IMPORTS.join('\n')}
95 import 'test.html.0.dart' as smoke_0; 95 import 'test.html.0.dart' as smoke_0;
96 import 'package:polymer/polymer.dart' as smoke_1; 96 import 'package:polymer/polymer.dart' as smoke_1;
97 97
98 void main() { 98 void main() {
(...skipping 28 matching lines...) Expand all
127 '${_sampleInput("C", "car")}</script>' 127 '${_sampleInput("C", "car")}</script>'
128 '</div>\n' 128 '</div>\n'
129 '<script type="application/dart" src="d.dart"></script>', 129 '<script type="application/dart" src="d.dart"></script>',
130 'a|web/a.dart': _sampleInput('A', 'foo'), 130 'a|web/a.dart': _sampleInput('A', 'foo'),
131 }, { 131 }, {
132 'a|web/test.html': 132 'a|web/test.html':
133 '<!DOCTYPE html><html><head>' 133 '<!DOCTYPE html><html><head>'
134 '$WEB_COMPONENTS_TAG\n\n' 134 '$WEB_COMPONENTS_TAG\n\n'
135 '</head><body>' 135 '</head><body>'
136 '<div>\n</div>\n' 136 '<div>\n</div>\n'
137 '<script src="test.html_bootstrap.dart.js"></script>' 137 '<script src="test.html_bootstrap.dart.js" async=""></script>'
138 '</body></html>', 138 '</body></html>',
139 'a|web/test.html_bootstrap.dart': 139 'a|web/test.html_bootstrap.dart':
140 '''$MAIN_HEADER 140 '''$MAIN_HEADER
141 import 'a.dart' as i0; 141 import 'a.dart' as i0;
142 import 'test.html.0.dart' as i1; 142 import 'test.html.0.dart' as i1;
143 import 'test.html.1.dart' as i2; 143 import 'test.html.1.dart' as i2;
144 ${DEFAULT_IMPORTS.join('\n')} 144 ${DEFAULT_IMPORTS.join('\n')}
145 import 'a.dart' as smoke_0; 145 import 'a.dart' as smoke_0;
146 import 'package:polymer/polymer.dart' as smoke_1; 146 import 'package:polymer/polymer.dart' as smoke_1;
147 import 'test.html.0.dart' as smoke_2; 147 import 'test.html.0.dart' as smoke_2;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 '</head><body>' 195 '</head><body>'
196 '<polymer-element name="x-a">1' 196 '<polymer-element name="x-a">1'
197 '<script type="application/dart">' 197 '<script type="application/dart">'
198 '${_sampleInput("A", "foo")}</script>' 198 '${_sampleInput("A", "foo")}</script>'
199 '</polymer-element></html>', 199 '</polymer-element></html>',
200 }, { 200 }, {
201 'a|web/index.html': 201 'a|web/index.html':
202 '<!DOCTYPE html><html><head>' 202 '<!DOCTYPE html><html><head>'
203 '$WEB_COMPONENTS_TAG' 203 '$WEB_COMPONENTS_TAG'
204 '</head><body><polymer-element name="x-a">1</polymer-element>' 204 '</head><body><polymer-element name="x-a">1</polymer-element>'
205 '<script src="index.html_bootstrap.dart.js"></script>' 205 '<script src="index.html_bootstrap.dart.js" async=""></script>'
206 '</body></html>', 206 '</body></html>',
207 'a|web/index.html_bootstrap.dart': 207 'a|web/index.html_bootstrap.dart':
208 '''$MAIN_HEADER 208 '''$MAIN_HEADER
209 import 'index.html.0.dart' as i0; 209 import 'index.html.0.dart' as i0;
210 import 'b.dart' as i1; 210 import 'b.dart' as i1;
211 ${DEFAULT_IMPORTS.join('\n')} 211 ${DEFAULT_IMPORTS.join('\n')}
212 import 'index.html.0.dart' as smoke_0; 212 import 'index.html.0.dart' as smoke_0;
213 import 'package:polymer/polymer.dart' as smoke_1; 213 import 'package:polymer/polymer.dart' as smoke_1;
214 import 'b.dart' as smoke_2; 214 import 'b.dart' as smoke_2;
215 215
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 '${_sampleInput("A", "foo")}</script>' 254 '${_sampleInput("A", "foo")}</script>'
255 '</polymer-element></html>', 255 '</polymer-element></html>',
256 'a|lib/load_b.html': 256 'a|lib/load_b.html':
257 '<!DOCTYPE html><html><head></head><body>' 257 '<!DOCTYPE html><html><head></head><body>'
258 '<script type="application/dart" src="b.dart"></script>', 258 '<script type="application/dart" src="b.dart"></script>',
259 }, { 259 }, {
260 'a|web/index.html': 260 'a|web/index.html':
261 '<!DOCTYPE html><html><head>' 261 '<!DOCTYPE html><html><head>'
262 '$WEB_COMPONENTS_TAG' 262 '$WEB_COMPONENTS_TAG'
263 '</head><body><polymer-element name="x-a">1</polymer-element>' 263 '</head><body><polymer-element name="x-a">1</polymer-element>'
264 '<script src="index.html_bootstrap.dart.js"></script>' 264 '<script src="index.html_bootstrap.dart.js" async=""></script>'
265 '</body></html>', 265 '</body></html>',
266 'a|web/index.html_bootstrap.dart': 266 'a|web/index.html_bootstrap.dart':
267 '''$MAIN_HEADER 267 '''$MAIN_HEADER
268 import 'index.html.0.dart' as i0; 268 import 'index.html.0.dart' as i0;
269 import 'package:a/b.dart' as i1; 269 import 'package:a/b.dart' as i1;
270 ${DEFAULT_IMPORTS.join('\n')} 270 ${DEFAULT_IMPORTS.join('\n')}
271 import 'index.html.0.dart' as smoke_0; 271 import 'index.html.0.dart' as smoke_0;
272 import 'package:polymer/polymer.dart' as smoke_1; 272 import 'package:polymer/polymer.dart' as smoke_1;
273 import 'package:a/b.dart' as smoke_2; 273 import 'package:a/b.dart' as smoke_2;
274 274
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 } 333 }
334 334
335 @CustomTag('x-$className') 335 @CustomTag('x-$className')
336 class X${className} extends PolymerElement { 336 class X${className} extends PolymerElement {
337 X${className}.created() : super.created(); 337 X${className}.created() : super.created();
338 } 338 }
339 @initMethod m_$fieldName() {} 339 @initMethod m_$fieldName() {}
340 main() {} 340 main() {}
341 '''; 341 ''';
342 } 342 }
OLDNEW
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | pkg/polymer/test/build/polyfill_injector_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698