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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/insert-br-009.html

Issue 2175673002: Convert editing/inserting/insert-br-00[0-9].html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-22T18:29:29 Created 4 years, 5 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
(Empty)
1 <script>
2 if (window.testRunner)
3 testRunner.dumpEditingCallbacks();
4 </script>
5 <p>This tests for a bug in InsertLineBreakCommand. Only one line break should b e inserted and the caret should end up at the end of the bordered div below.</p> <div contenteditable="true" id="div" style="white-space:pre; border: 1px solid b lack;">Hello world.
6
7 </div>
8
9 <script>
10 var sel = window.getSelection();
11 var div = document.getElementById("div");
12 sel.collapse(div, 0);
13 sel.modify("move", "forward", "line");
14 document.execCommand("InsertLineBreak");
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698