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

Side by Side Diff: third_party/WebKit/LayoutTests/editing/pasteboard/8145-1.html

Issue 2179373002: Convert editing/pasteboard/8145-[1-3].html to use w3c test harness (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 2016-07-26T15:28:49 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 is a replica of the paste that caused the crash covered by 8145.</p>
6 <div id="test" style="border: 1px solid black;" contenteditable="plaintext-only" ></div>
7
8 <script>
9 var s = window.getSelection();
10 var p = document.getElementById("test");
11 p.innerHTML = "";
12 s.collapse(p, 0);
13 var html = "<p style='margin: 0; font: 12px Helvetica'>foo <b>bar</b> baz</p>" + '\n';
14 document.execCommand("InsertHTML", false, html);
15 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698