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

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

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <script> 1 <script>
2 if (window.testRunner) 2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks(); 3 testRunner.dumpEditingCallbacks();
4 </script> 4 </script>
5 <div style="width: 400px; height: 50px; padding: 25px 0 0 25px; background: yell ow;"><div contenteditable="true" style="background: white; height:20px; width:10 0px"></div></div> 5 <div style="width: 400px; height: 50px; padding: 25px 0 0 25px; background: yell ow;"><div contenteditable="true" style="background: white; height:20px; width:10 0px"></div></div>
6 <p>This test clicks inside an editable div element, and must result in the eleme nt receiving focus. If the test succeeds the element should have a focus ring.</ p> 6 <p>This test clicks inside an editable div element, and must result in the eleme nt receiving focus. If the test succeeds the element should have a focus ring.</ p>
7 <script> 7 <script>
8 if (window.eventSender) { 8 if (window.eventSender) {
9 // Mouse events only work after an initial layout
10 document.body.offsetLeft;
11 eventSender.mouseMoveTo(100, 45); 9 eventSender.mouseMoveTo(100, 45);
12 eventSender.mouseDown(); 10 eventSender.mouseDown();
13 eventSender.mouseUp(); 11 eventSender.mouseUp();
14 } 12 }
15 </script> 13 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698