Commit 82d707b1 authored by Mustaq Ahmed's avatar Mustaq Ahmed Committed by Commit Bot

[UAv2] Add a virtual suite for fullscreen/

Bug: 805015
Change-Id: Ic066f3f7d939b5175ed19b6d710f343475fba7a8
Reviewed-on: https://chromium-review.googlesource.com/1100944Reviewed-by: default avatarPhilip Jägenstedt <foolip@chromium.org>
Commit-Queue: Mustaq Ahmed <mustaq@chromium.org>
Cr-Commit-Position: refs/heads/master@{#568439}
parent bda4ad85
......@@ -4008,6 +4008,8 @@ crbug.com/718155 media/video-controls-fullscreen-iframe-not-allowed.html [ Failu
crbug.com/718155 virtual/video-surface-layer/media/video-controls-fullscreen-iframe-not-allowed.html [ Failure ]
crbug.com/718155 virtual/android/fullscreen/full-screen-iframe-not-allowed.html [ Failure ]
crbug.com/718155 virtual/android/fullscreen/full-screen-restrictions.html [ Failure Timeout ]
crbug.com/718155 virtual/user-activation-v2/fullscreen/full-screen-iframe-not-allowed.html [ Failure ]
crbug.com/718155 virtual/user-activation-v2/fullscreen/full-screen-restrictions.html [ Failure Timeout ]
# Feature Policy changes same-origin allowpaymentrequest behaviour, tests need updating
crbug.com/718155 payments/payment-request-in-iframe.html [ Failure ]
......
......@@ -680,6 +680,11 @@
"base": "fast/events",
"args": ["--enable-features=UserActivationV2"]
},
{
"prefix": "user-activation-v2",
"base": "fullscreen",
"args": ["--enable-features=UserActivationV2"]
},
{
"prefix": "user-activation-v2",
"base": "user-activation-v2",
......
This tests that an element with a positive z-index appears behind the full screen iframe element. After entering full screen mode, the whole screen should be white. Click go full screen to run the test.
EVENT(webkitfullscreenchange)
END OF TEST
......@@ -7,7 +7,10 @@
function init() {
var iframe = document.getElementById('block1');
var element = iframe.contentDocument.documentElement;
waitForEventAndEnd(element, 'webkitfullscreenchange');
if (!internals.runtimeFlags.userActivationV2Enabled)
waitForEventAndEnd(element, 'webkitfullscreenchange');
else
waitForEventAndEnd(element, 'webkitfullscreenerror');
runWithKeyDown(goFullScreen);
}
......@@ -39,7 +42,7 @@
</style>
</head>
<body onload="init()">
<div>This tests that an element with a positive z-index appears behind the full screen element.
<div>This tests that an element with a positive z-index appears behind the full screen iframe element.
After entering full screen mode, the whole screen should be white.
Click <button onclick="goFullScreen()">go full screen</button> to run the test.</div>
<div id="block2"></div>
......
# This suite runs tests with --enable-features=UserActivationV2.
# See http://bit.ly/2E9E3IA
<!DOCTYPE html>
<html>
<head>
<style>
#block1 {
width: 200px;
height: 100px;
border: 4px solid darkgreen;
background-color: white;
z-index: 0;
}
#block2 {
width: 100px;
height: 50px;
border: 4px solid darkred;
background-color: red;
z-index: 500;
position: relative;
left: 50px;
top: 25px;
}
</style>
</head>
<body>
<div>This tests that an element with a positive z-index appears behind the full screen iframe element.
After entering full screen mode, the whole screen should be white.
Click <button>go full screen</button> to run the test.</div>
<div id="block2"></div>
<iframe id="block1"></iframe>
<div>EVENT(webkitfullscreenerror)<br>END OF TEST<br></div>
</body>
</html>
CONSOLE WARNING: line 20: Failed to execute 'requestFullscreen' on 'Element': API can only be initiated by a user gesture.
This tests that an element with a positive z-index appears behind the full screen iframe element. After entering full screen mode, the whole screen should be white. Click go full screen to run the test.
EVENT(webkitfullscreenerror)
END OF TEST
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