OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/shadow-dom.js"></script> | 4 <script src="resources/shadow-dom.js"></script> |
5 <script> | 5 <script> |
6 if (window.testRunner) | 6 if (window.testRunner) |
7 testRunner.dumpAsText(); | 7 testRunner.dumpAsText(); |
8 | 8 |
9 function runTest() { | 9 function runTest() { |
10 document.body.appendChild( | 10 document.body.appendChild( |
11 createDOM('div', {'id': 'div1'}, | 11 createDOM('div', {'id': 'div1'}, |
12 createShadowRoot(document.createTextNode('-1910120134')), | 12 createShadowRoot(document.createTextNode('-1910120134')), |
13 createShadowRoot(createDOM('div', {'id': 'div2'}, | 13 createShadowRoot(createDOM('div', {'id': 'div2'}, |
14 createShadowRoot()), | 14 createShadowRoot()), |
15 createDOM('shadow', {})))); | 15 createDOM('shadow', {})))); |
16 document.body.offsetLeft; | 16 document.body.offsetLeft; |
17 getNodeInTreeOfTrees('div1//div2').appendChild( | 17 getNodeInComposedTree('div1//div2').appendChild( |
18 createDOM('div', {'id': 'div3'}, | 18 createDOM('div', {'id': 'div3'}, |
19 createDOM('shadow', {}))); | 19 createDOM('shadow', {}))); |
20 document.body.offsetLeft; | 20 document.body.offsetLeft; |
21 document.body.innerHTML = 'PASS'; | 21 document.body.innerHTML = 'PASS'; |
22 } | 22 } |
23 </script> | 23 </script> |
24 </head> | 24 </head> |
25 <body onload="runTest()"> | 25 <body onload="runTest()"> |
26 <!-- [bug 113275] styleForText should consider the case where parent --> | 26 <!-- [bug 113275] styleForText should consider the case where parent --> |
27 <!-- node has no style. --> | 27 <!-- node has no style. --> |
28 <!-- If this test passes, we can just see 'PASS' without any crash. --> | 28 <!-- If this test passes, we can just see 'PASS' without any crash. --> |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
OLD | NEW |