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

Unified Diff: LayoutTests/editing/selection/contenteditable-click-inside.html

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/editing/selection/contenteditable-click-inside.html
diff --git a/LayoutTests/editing/selection/contenteditable-click-inside.html b/LayoutTests/editing/selection/contenteditable-click-inside.html
index 33ad053d3ac6f1efc2f7ac8131891c9360fa5d76..babfa072193ef671fe2740b67f8f6431c277df8b 100644
--- a/LayoutTests/editing/selection/contenteditable-click-inside.html
+++ b/LayoutTests/editing/selection/contenteditable-click-inside.html
@@ -6,6 +6,8 @@ if (window.testRunner)
<p>This test clicks inside an editable div element, and must result in the element receiving focus. If the test succeeds the element should have a focus ring.</p>
<script>
if (window.eventSender) {
+ // Mouse events only work after an initial layout
+ document.body.offsetLeft;
eventSender.mouseMoveTo(100, 45);
eventSender.mouseDown();
eventSender.mouseUp();

Powered by Google App Engine
This is Rietveld 408576698