Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / pasteboard / 4922709.html
1 <style>
2 blockquote {
3     border-left: 2px solid blue;
4     margin: 0;
5     padding-left: 10px;
6     color: blue;
7 }
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>
17
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>