mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Update web-platform-tests to revision 8a2ceb5f18911302b7a5c1cd2791f4ab50ad4326
This commit is contained in:
parent
462c272380
commit
1f531f66ea
5377 changed files with 174916 additions and 84369 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue