Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Unified Diff: LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls.html

Issue 317373007: Report correct touch hit rects for fullscreen HTML5 video on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update test expectations Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e03d26615d35bf5cdd75f22a450ce4e42cdad316
--- /dev/null
+++ b/LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls.html
@@ -0,0 +1,41 @@
+<!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 when
Rick Byers 2014/06/12 15:47:20 I'm not sure what "document handler is false" mean
+RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() is true and the
+document handler if false.
+</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>
« no previous file with comments | « no previous file | LayoutTests/fullscreen/compositor-touch-hit-rects-fullscreen-video-controls-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698