| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <script> | 3 <script> |
| 4 if (window.layoutTestController) | 4 if (window.layoutTestController) |
| 5 layoutTestController.dumpAsText(); | 5 layoutTestController.dumpAsText(); |
| 6 | 6 |
| 7 function runTest() | 7 function runTest() |
| 8 { | 8 { |
| 9 var obj = document.getElementById("test"); | 9 var obj = document.getElementById("test"); |
| 10 var s = window.getSelection(); | 10 var s = window.getSelection(); |
| 11 s.setPosition(obj, 0); | 11 s.setPosition(obj, 0); |
| 12 document.body.innerHTML = "PASS"; | 12 document.body.innerHTML = "PASS"; |
| 13 } | 13 } |
| 14 </script> | 14 </script> |
| 15 <body onload="runTest()"> | 15 <body onload="runTest()"> |
| 16 <div> | 16 <div> |
| 17 <object id="test"></object> | 17 <object id="test"></object> |
| 18 <embed type="application/x-webkit-test-netscape" cleardocumentduringnew></embed> | 18 <embed type="application/x-webkit-test-netscape" cleardocumentduringnew></embed> |
| 19 </div> | 19 </div> |
| 20 </body> | 20 </body> |
| 21 </html> | 21 </html> |
| OLD | NEW |