OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <style> |
| 5 iframe { |
| 6 visibility: hidden; |
| 7 } |
| 8 </style> |
| 9 <script> |
| 10 var frame = null; |
| 11 function receiveMessage(e) { |
| 12 frame.style.visibility = "visible"; |
| 13 if (window.internals) |
| 14 window.internals.forceCompositingUpdate(document); |
| 15 async_handle.done(); |
| 16 } |
| 17 |
| 18 window.addEventListener("message", receiveMessage, false); |
| 19 |
| 20 var async_handle = async_test('This test passes if it does not crash'); |
| 21 onload = function() { |
| 22 frame = document.createElement("IFRAME"); |
| 23 frame.width = frame.height = "100%"; |
| 24 document.body.appendChild(frame); |
| 25 frame.src = "resources/cancel-unattached-animation-frame.html"; |
| 26 }; |
| 27 </script> |
OLD | NEW |