OLD | NEW |
1 <html> | 1 <html> |
2 <body onload="runTest();"> | 2 <body onload="runTest();"> |
3 <div id="table" style="display: table;"> | 3 <div id="table" style="display: table;"> |
4 <em id="em"></em> | 4 <em id="em"></em> |
5 <audio controls="arbitrary" style="display: table-caption;" /> | 5 <audio controls="arbitrary" style="display: table-caption;" /> |
6 <img id="img" /> | 6 <img id="img" /> |
7 </div> | 7 </div> |
8 <div id="result"></div> | 8 <div id="result"></div> |
9 <script type="text/javascript"> | 9 <script type="text/javascript"> |
10 if (window.layoutTestController) | 10 if (window.layoutTestController) |
11 layoutTestController.dumpAsText(); | 11 layoutTestController.dumpAsText(); |
12 | 12 |
13 function runTest() | 13 function runTest() |
14 { | 14 { |
15 var img = document.getElementById('img'); | 15 var img = document.getElementById('img'); |
16 var em = document.getElementById('em'); | 16 var em = document.getElementById('em'); |
17 em.parentNode.replaceChild(img, em); | 17 em.parentNode.replaceChild(img, em); |
18 document.body.offsetTop; | 18 document.body.offsetTop; |
19 document.body.removeChild(document.getElementById('table')); | 19 document.body.removeChild(document.getElementById('table')); |
20 | 20 |
21 document.getElementById("result").innerHTML = "PASS"; | 21 document.getElementById("result").innerHTML = "PASS"; |
22 } | 22 } |
23 </script> | 23 </script> |
24 </body> | 24 </body> |
25 </html> | 25 </html> |
OLD | NEW |