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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/insert-paragraph-02.html

Issue 2175233002: Convert editing/inserting/insert-paragraph-0[1-5].html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-26T13:41:23 Created 4 years, 4 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 inserting a paragraph separator after a table. There should be an empty paragraph between the table and 'bar' and the caret should be in the empt y paragraph.</p>
6 <div contenteditable="true" id="div"><table border="1"><tr><td>foo</td></tr></ta ble>bar</div>
7
8 <script>
9 if (window.internals)
10 internals.settings.setEditingBehavior('mac');
11 var sel = window.getSelection();
12 var div = document.getElementById("div");
13 sel.collapse(div, 0);
14 sel.modify("move", "forward", "character");
15 sel.modify("move", "forward", "character");
16 sel.modify("move", "forward", "character");
17 sel.modify("move", "forward", "character");
18 sel.modify("move", "forward", "character");
19 document.execCommand("InsertParagraph");
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698