OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script> | 3 <script> |
4 if (window.testRunner) | 4 if (window.testRunner) |
5 { | 5 { |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 } | 8 } |
9 | 9 |
10 function runTest() | 10 function runTest() |
11 { | 11 { |
12 var button = document.getElementById("test"); | 12 var button = document.getElementById("test"); |
13 button.insertBefore(document.createElement("tbody")); | 13 button.insertBefore(document.createElement("tbody"), null); |
14 document.body.offsetTop; | 14 document.body.offsetTop; |
15 document.body.removeChild(button); | 15 document.body.removeChild(button); |
16 | 16 |
17 var result = document.createElement("div"); | 17 var result = document.createElement("div"); |
18 result.innerHTML = "PASS"; | 18 result.innerHTML = "PASS"; |
19 document.body.appendChild(result); | 19 document.body.appendChild(result); |
20 if (window.testRunner) | 20 if (window.testRunner) |
21 testRunner.notifyDone(); | 21 testRunner.notifyDone(); |
22 } | 22 } |
23 </script> | 23 </script> |
24 </head> | 24 </head> |
25 <body onload="runTest()"> | 25 <body onload="runTest()"> |
26 <button id="test"/> | 26 <button id="test"/> |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
29 | 29 |
OLD | NEW |