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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/pasteboard/insert-div-text-into-text.html

Issue 2298043003: Convert editing/pasteboard/insert-div-text-into-text.html to use w3c test harness (Closed)
Patch Set: 2016-09-01T12:27:29 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 <!DOCTYPE>
2 <html>
3 <body>
4 <div id="test" contenteditable="true">There&nbsp; be no line breaks in this sent ence.</div>
5 <script src="../../resources/dump-as-markup.js"></script>
6 <script>
7
8 if (window.testRunner)
9 testRunner.dumpEditingCallbacks();
10 if (window.internals)
11 internals.settings.setEditingBehavior('mac');
12
13 Markup.description('This tests inserting a text wrapped in a div inside a text n ode.');
14
15 var sel = window.getSelection();
16 var e = document.getElementById("test").firstChild;
17
18 sel.collapse(e, 0);
19 sel.modify("move", "forward", "word");
20 sel.modify("move", "forward", "character");
21 document.execCommand("InsertHTML", false, "<div>should</div>");
22
23 Markup.dump('test');
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698