servo/tests/wpt/web-platform-tests/fullscreen/model/remove-parent-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

26 lines
745 B
HTML

<!DOCTYPE html>
<title>Remove the parent 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>
<div id="child"></div>
</div>
<script>
async_test(function(t)
{
var child = document.getElementById("child");
trusted_request(t, child);
document.onfullscreenchange = t.step_func(function()
{
assert_equals(document.fullscreenElement, child);
child.parentNode.remove();
document.onfullscreenchange = t.step_func(function()
{
assert_equals(document.fullscreenElement, null);
t.done();
});
});
});
</script>