Commit 6f3bc640 authored by Alex Clarke's avatar Alex Clarke Committed by Commit Bot

Remove fullscreen/api/document-exit-fullscreen-vs-request.html

Split off from https://crrev.com/c/1751324

This test is no longer useful in the new model of consuming.

Bug: 971191
Change-Id: I0bf1d55a1f801947f745f17e420926feb4af98e8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1760740Reviewed-by: default avatarAlexander Timin <altimin@chromium.org>
Reviewed-by: default avatarPhilip Jägenstedt <foolip@chromium.org>
Commit-Queue: Alex Clarke <alexclarke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#689028}
parent ff1fc38d
...@@ -4935,7 +4935,6 @@ crbug.com/831509 virtual/navigation-mojo-response/external/wpt/service-workers/s ...@@ -4935,7 +4935,6 @@ crbug.com/831509 virtual/navigation-mojo-response/external/wpt/service-workers/s
crbug.com/852645 external/wpt/fullscreen/api/element-request-fullscreen-twice-manual.html [ Failure ] crbug.com/852645 external/wpt/fullscreen/api/element-request-fullscreen-twice-manual.html [ Failure ]
crbug.com/852645 external/wpt/fullscreen/api/element-request-fullscreen-two-elements-manual.html [ Failure ] crbug.com/852645 external/wpt/fullscreen/api/element-request-fullscreen-two-elements-manual.html [ Failure ]
crbug.com/852645 external/wpt/fullscreen/api/element-request-fullscreen-two-iframes-manual.html [ Failure Timeout ] crbug.com/852645 external/wpt/fullscreen/api/element-request-fullscreen-two-iframes-manual.html [ Failure Timeout ]
crbug.com/852645 virtual/android/fullscreen/api/document-exit-fullscreen-vs-request.html [ Failure ]
# snav tests fail because of a DCHECK # snav tests fail because of a DCHECK
crbug.com/985520 virtual/focusless-spat-nav/fast/spatial-navigation/focusless/snav-focusless-enter-from-interest-a11y.html [ Crash ] crbug.com/985520 virtual/focusless-spat-nav/fast/spatial-navigation/focusless/snav-focusless-enter-from-interest-a11y.html [ Crash ]
......
CONSOLE WARNING: line 45: Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture.
CONSOLE ERROR: line 45: Uncaught (in promise) TypeError: fullscreen error
This is a testharness.js-based test.
Harness Error. harness_status.status = 1 , harness_status.message = fullscreen error
FAIL Document#exitFullscreen() vs. Element#requestFullscreen() assert_unreached: fullscreenerror event Reached unreachable code
Harness: the test ran to completion.
<!DOCTYPE html>
<title>Document#exitFullscreen() vs. Element#requestFullscreen()</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="parent"><div></div></div>
<script>
// Adapted from https://github.com/web-platform-tests/wpt/pull/4250
// TODO(foolip): Remove this test when the above is imported and passing.
async_test(t => {
const parent = document.getElementById("parent");
document.onfullscreenchange = t.step_func(() => {
// We are now in fullscreen, so exiting requires a resize but requesting
// does not.
assert_equals(document.fullscreenElement, parent, "fullscreenElement after fullscreenchange event");
trusted_click(t, () => {
// Request fullscreen on another element, to avoid any synchronous
// short-circuiting on document.fullscreenElement.requestFullscreen(),
// which used to be in the spec. Also request both before and after the
// exit. The first request will be applied at the next microtask
// checkpoint and events queued for the following animation frame task.
// That will race with the exit resize, but by the second fullscreenchange
// event fullscreenElement must be null. The second request is ignored due
// to the pending exit and doesn't result in any events.
let fullscreenchanges = 0;
document.onfullscreenchange = t.step_func(() => {
fullscreenchanges++;
if (fullscreenchanges == 2) {
assert_equals(document.fullscreenElement, null);
// Expect no more fullscreenchange events.
document.onfullscreenchange = t.unreached_func("third fullscreenchange event");
requestAnimationFrame(t.step_func_done());
}
});
const child = parent.firstChild;
child.requestFullscreen();
assert_equals(document.fullscreenElement, parent, "fullscreenElement after first requestFullscreen()");
document.exitFullscreen();
assert_equals(document.fullscreenElement, parent, "fullscreenElement after exitFullscreen()");
child.requestFullscreen();
assert_equals(document.fullscreenElement, parent, "fullscreenElement after second requestFullscreen()");
}, parent);
});
document.onfullscreenerror = t.unreached_func("fullscreenerror event");
trusted_request(t, parent);
});
</script>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment