Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326

This commit is contained in:
Josh Matthews 2017-10-12 09:25:50 -04:00
parent 462c272380
commit 1f531f66ea
5377 changed files with 174916 additions and 84369 deletions

View file

@ -15,12 +15,20 @@ async_test(t => {
assert_equals(document.fullscreenElement, outer);
// Then request fullscreen for the inner element.
trusted_request(t, inner);
trusted_click(t, t.step_func(() => {
inner.requestFullscreen();
// Even though we are already in fullscreen, the change in
// document.fullscreenElement should not happen synchronously.
assert_equals(document.fullscreenElement, outer);
}), outer);
document.onfullscreenchange = t.step_func(() => {
assert_equals(document.fullscreenElement, inner);
// Now exit fullscreen.
document.exitFullscreen();
// Even though we don't need to exit fullscreen, the change in
// document.fullscreenElement should not happen synchronously.
assert_equals(document.fullscreenElement, inner);
document.onfullscreenchange = t.step_func_done(() => {
assert_equals(document.fullscreenElement, outer);
});