servo/tests/wpt/web-platform-tests/fullscreen/model/remove-child-manual.html
Ms2ger 296fa2512b Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180.
- Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
2017-02-06 22:38:29 +01:00

28 lines
941 B
HTML

<!DOCTYPE html>
<title>Remove the child of the fullscreen element</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../trusted-click.js"></script>
<div id="log"></div>
<div id="parent">
<div></div>
</div>
<script>
async_test(function(t)
{
var parent = document.getElementById("parent");
trusted_request(t, parent);
document.onfullscreenchange = t.step_func(function()
{
assert_equals(document.fullscreenElement, parent);
parent.textContent = ""; // removes all children
document.onfullscreenchange = t.unreached_func("fullscreenchange event");
// A fullscreenchange event would be fired after an async section
// and an animation frame task, so wait until after that.
t.step_timeout(function()
{
requestAnimationFrame(t.step_func_done());
}, 0);
});
});
</script>