| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <script> | 7 <script> |
| 8 jsTestIsAsync = true; | 8 jsTestIsAsync = true; |
| 9 function boom() { | 9 function boom() { |
| 10 divNode = document.createElement('div'); | 10 divNode = document.createElement('div'); |
| 11 document.documentElement.appendChild(divNode); | 11 document.documentElement.appendChild(divNode); |
| 12 divShadow1 = divNode.createShadowRoot(); | 12 divShadow1 = divNode.createShadowRoot(); |
| 13 divShadow2 = divNode.createShadowRoot(); | 13 divShadow2 = divNode.createShadowRoot(); |
| 14 | 14 |
| 15 videoNode = document.createElement('video'); | 15 videoNode = document.createElement('video'); |
| 16 divShadow2.appendChild(videoNode); | 16 divShadow2.appendChild(videoNode); |
| 17 | 17 |
| 18 shadowNode = document.createElement('shadow'); | 18 shadowNode = document.createElement('shadow'); |
| 19 videoNode.appendChild(shadowNode); | 19 videoNode.appendChild(shadowNode); |
| 20 | 20 |
| 21 text = document.createTextNode('Hello'); | 21 text = document.createTextNode('Hello'); |
| 22 divShadow1.appendChild(text); | 22 divShadow1.appendChild(text); |
| 23 | 23 |
| 24 testPassed("unless crash"); | 24 testPassed("unless crash"); |
| 25 finishJSTest(); | 25 finishJSTest(); |
| 26 } | 26 } |
| 27 | 27 |
| 28 window.onload = boom; | 28 window.onload = boom; |
| 29 </script> | 29 </script> |
| 30 </body> | 30 </body> |
| 31 </html> | 31 </html> |
| OLD | NEW |