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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/selection/image-before-linebreak.html

Issue 1756763002: 2016-03-02T18:53:01 LayoutPosition Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-04-25T19:02:18 Created 4 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
OLDNEW
1 <script> 1 <script>
2 if (window.testRunner) 2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks(); 3 testRunner.dumpEditingCallbacks();
4 </script> 4 </script>
5 <p>Only the line break after the image should be selected.</p> 5 <p>Only the line break after the image should be selected.</p>
6 <hr> 6 <hr>
7 <div contenteditable="true" id="div"><img src="../resources/abe.png"><br>foo</di v> 7 <div contenteditable="true" id="div"><img src="../resources/abe.png"><br>foo</di v>
8 8
9 <script> 9 <script>
10 if (window.testRunner) 10 if (window.testRunner)
11 window.testRunner.dumpSelectionRect(); 11 window.testRunner.dumpSelectionRect();
12 12
13 var e = document.getElementById("div"); 13 // We should wait for loading IMG otherwise we can't place a caret since,
14 var s = window.getSelection(); 14 // IMG dimension is zero.
15 // Select the line break 15 window.onload = function() {
16 s.setBaseAndExtent(e, 1, e, 2); 16 var e = document.getElementById("div");
17 var s = window.getSelection();
18 // Select the line break
19 s.setBaseAndExtent(e, 1, e, 2);
20 };
17 </script> 21 </script>
OLDNEW
« no previous file with comments | « components/test_runner/text_input_controller.cc ('k') | third_party/WebKit/Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698