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="../../js/resources/js-test-pre.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 var div = document.createElement('div'); | 10 var div = document.createElement('div'); |
11 | 11 |
12 var older = new WebKitShadowRoot(div); | 12 var older = new WebKitShadowRoot(div); |
13 older.appendChild(document.createElement('div')); | 13 older.appendChild(document.createElement('div')); |
14 document.documentElement.appendChild(div); | 14 document.documentElement.appendChild(div); |
15 | 15 |
16 var younger = new WebKitShadowRoot(div); | 16 var younger = new WebKitShadowRoot(div); |
17 var select = document.createElement('select'); | 17 var select = document.createElement('select'); |
18 var shadow = document.createElement('shadow'); | 18 var shadow = document.createElement('shadow'); |
19 select.appendChild(shadow); | 19 select.appendChild(shadow); |
20 younger.appendChild(select); | 20 younger.appendChild(select); |
21 | 21 |
22 testPassed("unless crash"); | 22 testPassed("unless crash"); |
23 finishJSTest(); | 23 finishJSTest(); |
24 } | 24 } |
25 window.onload = boom; | 25 window.onload = boom; |
26 </script> | 26 </script> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |