diff options
Diffstat (limited to 'testing/web-platform/tests/fullscreen/model/remove-single-manual.html')
-rw-r--r-- | testing/web-platform/tests/fullscreen/model/remove-single-manual.html | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/web-platform/tests/fullscreen/model/remove-single-manual.html b/testing/web-platform/tests/fullscreen/model/remove-single-manual.html new file mode 100644 index 000000000..53abb5e82 --- /dev/null +++ b/testing/web-platform/tests/fullscreen/model/remove-single-manual.html @@ -0,0 +1,24 @@ +<!DOCTYPE html> +<title>Remove the single element on the fullscreen element stack</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="single"></div> +<script> +async_test(function(t) +{ + var single = document.getElementById("single"); + document.onfullscreenchange = t.step_func(function() + { + assert_equals(document.fullscreenElement, single); + single.remove(); + document.onfullscreenchange = t.step_func(function() + { + assert_equals(document.fullscreenElement, null); + t.done(); + }); + }); + trusted_request(single); +}); +</script> |