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

Unified Diff: LayoutTests/virtual/android/fullscreen/video-scrolled-iframe.html

Issue 406213002: If the media controls are visible they should always grab clicks (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix layout test - was hitting overlay play button. Created 6 years, 5 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
Index: LayoutTests/virtual/android/fullscreen/video-scrolled-iframe.html
diff --git a/LayoutTests/virtual/android/fullscreen/video-scrolled-iframe.html b/LayoutTests/virtual/android/fullscreen/video-scrolled-iframe.html
index fd5c67e9d365f15f75c66db76de22018bcf1028c..8a101123b96e7923ac22b9e81912e457dce78677 100644
--- a/LayoutTests/virtual/android/fullscreen/video-scrolled-iframe.html
+++ b/LayoutTests/virtual/android/fullscreen/video-scrolled-iframe.html
@@ -9,10 +9,10 @@
if (!initialized) {
window.scrollTo(0, 100);
// video has been loaded and messaged us.
- // Send click to center of iframe.
+ // Send click to iframe (not the center since this will hit the overlay play button).
iframe = document.getElementById("frame");
- x = iframe.offsetLeft + iframe.offsetWidth / 2;
- y = iframe.offsetTop + iframe.offsetHeight / 2;
+ x = iframe.offsetLeft + 10;
+ y = iframe.offsetTop + 10;
if (window.eventSender) {
eventSender.mouseMoveTo(x, y);
eventSender.mouseDown();

Powered by Google App Engine
This is Rietveld 408576698