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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/inserting/paragraph-separator-01.html

Issue 2287283002: Convert editing/inserting/paragraph-separator-0[123].html to use w3c test harness (Closed)
Patch Set: 2016-08-30T13:39:16 Created 4 years, 3 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>Tests for a bug in the paragraph separator insertion code. Only one newline should be added.</p>
6 <div id="test" contenteditable="true">foo<br><div>bar</div></div>
7
8 <script type="text/javascript" src="../editing.js"></script>
9 <script>
10 if (window.internals)
11 internals.settings.setEditingBehavior("mac");
12 var e = document.getElementById("test");
13 var s = window.getSelection();
14
15 setSelectionCommand(e, 0, e, 0);
16 moveSelectionForwardByWordCommand();
17 insertParagraphCommand();
18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698