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

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

Issue 15508003: Revert "Don't force layout for mouse event hit tests" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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-iframe.js
diff --git a/LayoutTests/fast/events/script-tests/page-scaled-mouse-click-iframe.js b/LayoutTests/fast/events/script-tests/page-scaled-mouse-click-iframe.js
index 61946ecc1f9b79377ec086b5936fb1f07a04e280..3da90039ab11cd32c33dadc930606177d85004e7 100644
--- a/LayoutTests/fast/events/script-tests/page-scaled-mouse-click-iframe.js
+++ b/LayoutTests/fast/events/script-tests/page-scaled-mouse-click-iframe.js
@@ -75,6 +75,9 @@ function iframeLoaded() {
finishJSTest();
}
+// Mouse events only work after an initial layout
+document.body.offsetLeft;
+
// Add the iframe to the document.
iframe.src = "resources/page-scaled-mouse-click-iframe-inner.html";
document.body.insertBefore(iframe, document.body.firstChild);
« no previous file with comments | « LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js ('k') | LayoutTests/fast/events/scrollbar-double-click.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698