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

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

Issue 27518006: Practically remove boot.js, adds the initialization from the Dart side of (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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/test/build/linter_test.dart ('k') | pkg/polymer/test/event_path_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.script_compactor_test; 5 library polymer.test.build.script_compactor_test;
6 6
7 import 'package:polymer/src/build/common.dart'; 7 import 'package:polymer/src/build/common.dart';
8 import 'package:polymer/src/build/script_compactor.dart'; 8 import 'package:polymer/src/build/script_compactor.dart';
9 import 'package:unittest/compact_vm_config.dart'; 9 import 'package:unittest/compact_vm_config.dart';
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 '<script src="packages/browser/dart.js"></script>' 42 '<script src="packages/browser/dart.js"></script>'
43 '</body></html>', 43 '</body></html>',
44 44
45 'a|web/test.html_bootstrap.dart': 45 'a|web/test.html_bootstrap.dart':
46 '''$MAIN_HEADER 46 '''$MAIN_HEADER
47 import 'a.dart' as i0; 47 import 'a.dart' as i0;
48 48
49 void main() { 49 void main() {
50 initPolymer([ 50 initPolymer([
51 'a.dart', 51 'a.dart',
52 ], currentMirrorSystem().isolate.rootLibrary.uri.toString()); 52 ]);
53 } 53 }
54 '''.replaceAll('\n ', '\n'), 54 '''.replaceAll('\n ', '\n'),
55 }); 55 });
56 56
57 testPhases('several scripts', phases, { 57 testPhases('several scripts', phases, {
58 'a|web/test.html': 58 'a|web/test.html':
59 '<!DOCTYPE html><html><head>' 59 '<!DOCTYPE html><html><head>'
60 '<script type="application/dart" src="a.dart"></script>' 60 '<script type="application/dart" src="a.dart"></script>'
61 '<script type="application/dart" src="b.dart"></script>' 61 '<script type="application/dart" src="b.dart"></script>'
62 '</head><body><div>' 62 '</head><body><div>'
(...skipping 14 matching lines...) Expand all
77 import 'b.dart' as i1; 77 import 'b.dart' as i1;
78 import 'c.dart' as i2; 78 import 'c.dart' as i2;
79 import 'd.dart' as i3; 79 import 'd.dart' as i3;
80 80
81 void main() { 81 void main() {
82 initPolymer([ 82 initPolymer([
83 'a.dart', 83 'a.dart',
84 'b.dart', 84 'b.dart',
85 'c.dart', 85 'c.dart',
86 'd.dart', 86 'd.dart',
87 ], currentMirrorSystem().isolate.rootLibrary.uri.toString()); 87 ]);
88 } 88 }
89 '''.replaceAll('\n ', '\n'), 89 '''.replaceAll('\n ', '\n'),
90 }); 90 });
91 } 91 }
OLDNEW
« no previous file with comments | « pkg/polymer/test/build/linter_test.dart ('k') | pkg/polymer/test/event_path_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698