Update web-platform-tests to revision 3137d1d2d7757366a69f8a449b458b5057e0e81e

This commit is contained in:
Ms2ger 2016-12-28 09:51:21 +01:00
parent 81ca858678
commit d6ba94ca28
2339 changed files with 89274 additions and 9328 deletions

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<title>Document#exitFullscreen() called twice</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../trusted-click.js"></script>
<div id="log"></div>
<script>
async_test(t => {
const div = document.querySelector("div");
document.onfullscreenchange = t.step_func(() => {
// We are now in fullscreen.
assert_equals(document.fullscreenElement, div);
document.onfullscreenchange = t.step_func(() => {
assert_equals(document.fullscreenElement, null);
// Done, but ensure that there's only one fullscreenchange event.
document.onfullscreenchange = t.unreached_func("second fullscreenchange event");
setTimeout(t.step_func_done(), 0);
});
// Exit fullscreen twice.
document.exitFullscreen();
assert_equals(document.fullscreenElement, div, "fullscreenElement after first exitFullscreen()");
document.exitFullscreen();
assert_equals(document.fullscreenElement, div, "fullscreenElement after second exitFullscreen()");
});
document.onfullscreenerror = t.unreached_func("fullscreenerror event");
trusted_request(div);
});
</script>