Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 4922709.html
blob016b12b797510aed76c83cb769a04ba83293a50a
1 <style>
2 blockquote {
3 border-left: 2px solid blue;
4 margin: 0;
5 padding-left: 10px;
6 color: blue;
8 </style>
9 <div id="description">This tests copying/pasting less than a paragraph of quoted content. It should appear quoted.</div>
10 <div id="edit" contenteditable="true">
11 <br>
12 <br>
13 <div>On Tuesday, Dave wrote:</div>
14 <div><br></div>
15 <blockquote id="blockquote" type="cite">Hello World</blockquote>
16 </div>
18 <script>
19 if (window.testRunner)
20 window.testRunner.dumpAsText();
21 blockquote = document.getElementById("blockquote");
22 text = blockquote.firstChild;
23 sel = window.getSelection();
24 sel.setBaseAndExtent(text, 0, text, text.length);
25 document.execCommand("Copy");
26 edit = document.getElementById("edit");
27 sel.collapse(edit, 0);
28 document.execCommand("Paste");
29 if (window.testRunner)
30 document.body.innerText = document.getElementById("description").innerText + "\n\n" + document.getElementById("edit").innerHTML;
31 </script>