OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>Element#webkitRequestFullscreen() followed by removing the element</title
> |
| 3 <script src="../../resources/testharness.js"></script> |
| 4 <script src="../../resources/testharnessreport.js"></script> |
| 5 <script src="../trusted-click.js"></script> |
| 6 <div id="log"></div> |
| 7 <div id="target"></div> |
| 8 <script> |
| 9 async_test(t => { |
| 10 const target = document.getElementById("target"); |
| 11 |
| 12 document.onwebkitfullscreenchange = t.unreached_func("webkitfullscreenchange e
vent"); |
| 13 document.onwebkitfullscreenerror = t.step_func_done(event => { |
| 14 assert_equals(event.target, document); |
| 15 assert_equals(document.webkitFullscreenElement, null); |
| 16 }); |
| 17 |
| 18 trusted_click(t.step_func(() => { |
| 19 target.webkitRequestFullscreen(); |
| 20 target.remove(); |
| 21 }), document.body); |
| 22 }); |
| 23 </script> |
OLD | NEW |