OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
5 <script src="resources/shadow-dom.js"></script> | 5 <script src="resources/shadow-dom.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <div id="console"></div> | 8 <div id="console"></div> |
9 <div id="sandbox"></div> | 9 <div id="sandbox"></div> |
10 <script> | 10 <script> |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 createDOM('div', {'id': 'h'}), | 93 createDOM('div', {'id': 'h'}), |
94 createDOM('div', {'id': 'i'}))); | 94 createDOM('div', {'id': 'i'}))); |
95 | 95 |
96 debug('Test for Multiple ShadowRoots.'); | 96 debug('Test for Multiple ShadowRoots.'); |
97 testComposedShadowTree( | 97 testComposedShadowTree( |
98 createDOM('div', {'id': 'a'}, | 98 createDOM('div', {'id': 'a'}, |
99 createShadowRoot(createDOM('div', {'id': 'b'}), | 99 createShadowRoot(createDOM('div', {'id': 'b'}), |
100 createDOM('content'), | 100 createDOM('content'), |
101 createDOM('div', {'id': 'c'})), | 101 createDOM('div', {'id': 'c'})), |
102 createShadowRoot(createDOM('div', {'id': 'd'}), | 102 createShadowRoot(createDOM('div', {'id': 'd'}), |
103 createDOM('shadow', {}, | 103 createDOM('shadow', {}), |
104 createDOM('content')), | |
105 createDOM('div', {'id': 'e'})), | 104 createDOM('div', {'id': 'e'})), |
106 createDOM('div', {'id': 'f'}))); | 105 createDOM('div', {'id': 'f'}))); |
107 | 106 |
108 debug('Test for inactive insertion points.'); | 107 debug('Test for inactive insertion points.'); |
109 testComposedShadowTree( | 108 testComposedShadowTree( |
110 createDOM('div', {'id': 'a'}, | 109 createDOM('div', {'id': 'a'}, |
111 createDOM('content', {'id': 'b'}, | 110 createDOM('content', {'id': 'b'}, |
112 createDOM('content', {'id': 'c'})))); | 111 createDOM('content', {'id': 'c'})))); |
113 | 112 |
114 debug('Test for an orphaned shadow subtree.'); | 113 debug('Test for an orphaned shadow subtree.'); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 createDOM('div', {'id': 'a'}, | 221 createDOM('div', {'id': 'a'}, |
223 createShadowRoot(), | 222 createShadowRoot(), |
224 createShadowRoot( | 223 createShadowRoot( |
225 createDOM('div', {'id': 'b'}), | 224 createDOM('div', {'id': 'b'}), |
226 createDOM('shadow', {'id': 'shadow'}, | 225 createDOM('shadow', {'id': 'shadow'}, |
227 createDOM('div', {'id': 'should-not-be-used'})), | 226 createDOM('div', {'id': 'should-not-be-used'})), |
228 createDOM('div', {'id': 'c'})))); | 227 createDOM('div', {'id': 'c'})))); |
229 </script> | 228 </script> |
230 </body> | 229 </body> |
231 </html> | 230 </html> |
OLD | NEW |