mirror of
https://github.com/ManchildProductions/UXP-Fixed.git
synced 2026-06-10 21:09:15 +00:00
25 lines
734 B
HTML
25 lines
734 B
HTML
<!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>
|