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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/pasteboard/displaced-generic-placeholder.html

Issue 2341953005: Convert editing/pasteboard/displaced-{,generic-}placeholder.html.html to use w3c test harness (Closed)
Patch Set: 2016-09-15T18:48:33 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>This is a test to make sure that a placeholder, even one that doesn't have ou r special class on it, is removed when it is displaced by pasted content.</p>
6 <div id="test" contenteditable="true"><br></div>
7
8 <script>
9 var s = window.getSelection();
10 var e = document.getElementById("test");
11
12 s.collapse(e, 0);
13 document.execCommand("InsertHTML", false, "First paragraph.<div>Second paragraph .</div>");
14 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698