| Index: LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls.html
|
| diff --git a/LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls.html b/LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b4325b7e5d29333fbdb6597225089d5ffeb5d8f4
|
| --- /dev/null
|
| +++ b/LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls.html
|
| @@ -0,0 +1,39 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<link rel="stylesheet" href="../fast/events/touch/resources/compositor-touch-hit-rects.css">
|
| +</head>
|
| +<body>
|
| +<p id="discription">
|
| +This test makes sure that touch hit rects are reported for fullscreen HTML5
|
| +video control elements even when there is a document handler.
|
| +</p>
|
| +<video id="video" width="300"></video>
|
| +<script src="full-screen-test.js"></script>
|
| +<script src="../fast/events/touch/resources/compositor-touch-hit-rects.js"></script>
|
| +<script>
|
| +var log = consoleWrite;
|
| +
|
| +if (window.testRunner)
|
| + testRunner.dumpAsText();
|
| +
|
| +window.onload = function () {
|
| + document.addEventListener('touchstart', function() { });
|
| +
|
| + consoleWrite("Should have single rect on document before fullscreen");
|
| + logRects('handler');
|
| +
|
| + waitForEvent(document, 'webkitfullscreenchange', function() {
|
| + if (window.internals.runtimeFlags.overlayFullscreenVideoEnabled)
|
| + consoleWrite("Should report another rect which is not on the document");
|
| + else
|
| + consoleWrite("Should keep rect on document");
|
| + logRects('handler');
|
| + endTest();
|
| + });
|
| +
|
| + runWithKeyDown(function(){document.querySelector('#video').webkitRequestFullScreen()});
|
| +}
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|