Add support for fullscreen #10102

This commit is contained in:
Jansen Jan 2016-12-08 14:02:08 +01:00
parent c3c086e521
commit 55f0e56224
33 changed files with 454 additions and 30 deletions

View file

@ -8132,6 +8132,12 @@
"url": "/_mozilla/mozilla/form_tab_keyevent.html"
}
],
"mozilla/fullscreen-remove-single.html": [
{
"path": "mozilla/fullscreen-remove-single.html",
"url": "/_mozilla/mozilla/fullscreen-remove-single.html"
}
],
"mozilla/getBoundingClientRect.html": [
{
"path": "mozilla/getBoundingClientRect.html",

View file

@ -0,0 +1,23 @@
<!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>
<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);
document.onfullscreenchange = t.step_func(function()
{
assert_equals(document.fullscreenElement, null);
t.done();
});
single.remove();
});
single.requestFullscreen();
});
</script>