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.polyfill_injector_test; | 5 library polymer.test.build.polyfill_injector_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/polyfill_injector.dart'; | 8 import 'package:polymer/src/build/polyfill_injector.dart'; |
9 import 'package:unittest/compact_vm_config.dart'; | 9 import 'package:unittest/compact_vm_config.dart'; |
10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 '<script type="application/dart" src="a.dart"></script>', | 44 '<script type="application/dart" src="a.dart"></script>', |
45 }); | 45 }); |
46 | 46 |
47 testPhases('with some script', phases, { | 47 testPhases('with some script', phases, { |
48 'a|web/test.html': | 48 'a|web/test.html': |
49 '<!DOCTYPE html><html><head></head><body>' | 49 '<!DOCTYPE html><html><head></head><body>' |
50 '<script type="application/dart" src="a.dart"></script>', | 50 '<script type="application/dart" src="a.dart"></script>', |
51 }, { | 51 }, { |
52 'a|web/test.html': | 52 'a|web/test.html': |
53 '<!DOCTYPE html><html><head>' | 53 '<!DOCTYPE html><html><head>' |
54 '$WEB_COMPONENTS_TAG$INTEROP_TAG' | 54 '$WEB_COMPONENTS_TAG' |
55 '</head><body>' | 55 '</head><body>' |
56 '<script ${type}src="a.dart$ext"></script>' | 56 '<script ${type}src="a.dart$ext"></script>' |
57 '$dartJsTag' | 57 '$dartJsTag' |
58 '</body></html>', | 58 '</body></html>', |
59 }); | 59 }); |
60 | 60 |
61 testPhases('interop/shadow dom already present', phases, { | 61 testPhases('interop/shadow dom already present', phases, { |
62 'a|web/test.html': | 62 'a|web/test.html': |
63 '<!DOCTYPE html><html><head>' | 63 '<!DOCTYPE html><html><head>' |
64 '$WEB_COMPONENTS_TAG' | 64 '$WEB_COMPONENTS_TAG' |
65 '$INTEROP_TAG' | |
66 '</head><body>' | 65 '</head><body>' |
67 '<script type="application/dart" src="a.dart"></script>' | 66 '<script type="application/dart" src="a.dart"></script>' |
68 '$dartJsTag' | 67 '$dartJsTag' |
69 }, { | 68 }, { |
70 'a|web/test.html': | 69 'a|web/test.html': |
71 '<!DOCTYPE html><html><head>' | 70 '<!DOCTYPE html><html><head>' |
72 '$WEB_COMPONENTS_TAG' | 71 '$WEB_COMPONENTS_TAG' |
73 '$INTEROP_TAG' | |
74 '</head><body>' | 72 '</head><body>' |
75 '<script ${type}src="a.dart$ext"></script>' | 73 '<script ${type}src="a.dart$ext"></script>' |
76 '$dartJsTag' | 74 '$dartJsTag' |
77 '</body></html>', | 75 '</body></html>', |
78 }); | 76 }); |
79 } | 77 } |
OLD | NEW |