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); |