| 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.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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |