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

Unified Diff: LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js

Issue 14859016: Don't force layout for mouse event hit tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix review comment Created 7 years, 7 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/fast/events/script-tests/page-scaled-mouse-click.js
diff --git a/LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js b/LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js
index 0d80b73b8e45694921874ad632d507e719c1125c..06a7964318966d84ce8931a370ada93f60d48e4f 100644
--- a/LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js
+++ b/LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js
@@ -44,6 +44,9 @@ function testEvents(button, description, expectedString) {
}
if (window.eventSender && window.internals) {
+ // Mouse events only work after an initial layout
+ document.body.offsetLeft;
+
eventSender.mouseMoveTo(10, 10);
// We are clicking in the same position on screen. As we scale or transform the page,
// we expect the pageX and pageY event coordinates to change because different
« no previous file with comments | « LayoutTests/fast/events/script-tests/mouse-click-events.js ('k') | LayoutTests/fast/events/scrollbar-double-click.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698