| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script> | 2 <script> |
| 3 if (window.layoutTestController) { | 3 if (window.layoutTestController) { |
| 4 layoutTestController.dumpAsText(); | 4 layoutTestController.dumpAsText(); |
| 5 layoutTestController.waitUntilDone(); | 5 layoutTestController.waitUntilDone(); |
| 6 } | 6 } |
| 7 window.onload = function() { | 7 window.onload = function() { |
| 8 var el = document.getElementsByTagName("iframe")[0]; | 8 var el = document.getElementsByTagName("iframe")[0]; |
| 9 window.frames[0].webkitRequestAnimationFrame(function() { | 9 window.frames[0].webkitRequestAnimationFrame(function() { |
| 10 el.parentNode.removeChild(el); | 10 el.parentNode.removeChild(el); |
| 11 }); | 11 }); |
| 12 window.frames[1].webkitRequestAnimationFrame(function() { | 12 window.frames[1].webkitRequestAnimationFrame(function() { |
| 13 }); | 13 }); |
| 14 | 14 |
| 15 if (window.layoutTestController) { | 15 if (window.layoutTestController) { |
| 16 window.setTimeout(function() { | 16 window.setTimeout(function() { |
| 17 layoutTestController.display(); | 17 layoutTestController.display(); |
| 18 layoutTestController.notifyDone(); | 18 layoutTestController.notifyDone(); |
| 19 }, 50); | 19 }, 50); |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 </script> | 22 </script> |
| 23 Test passes is there is no crash. | 23 Test passes is there is no crash. |
| 24 <iframe></iframe> | 24 <iframe></iframe> |
| 25 <iframe></iframe> | 25 <iframe></iframe> |
| OLD | NEW |