| OLD | NEW |
| (Empty) |
| 1 <!doctype html> | |
| 2 <html> | |
| 3 <body> | |
| 4 <iframe src="resources/iframe-drag-dragend-detaches.html"></iframe> | |
| 5 <script> | |
| 6 function updateResult(msg) { | |
| 7 document.getElementById('results').innerHTML = msg; | |
| 8 } | |
| 9 | |
| 10 function test() { | |
| 11 updateResult('Test failed.'); | |
| 12 | |
| 13 testRunner.dumpAsText(); | |
| 14 testRunner.waitUntilDone(); | |
| 15 | |
| 16 var ifr = document.querySelector("iframe"); | |
| 17 ifr.contentWindow.test(ifr.offsetLeft, ifr.offsetTop); | |
| 18 } | |
| 19 | |
| 20 function finishUp() { | |
| 21 updateResult('Test passed (no crash.)'); | |
| 22 document.querySelector("iframe").remove(); | |
| 23 // This will detach the iframe, verifying in the process | |
| 24 // if the tail end of the drag operation handles that as | |
| 25 // wanted (== gracefully, no crashing.) | |
| 26 } | |
| 27 window.onload = test; | |
| 28 </script> | |
| 29 <div id="results"></div> | |
| 30 </body> | |
| 31 </html> | |
| OLD | NEW |