Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / editing / pasteboard / 5761530-1.html
1 <div id="description">This tests to see that tabs are put into tab spans when they are copied individually.  The pasted tab should be inside of a tab span, not a style span.  To run the test manually, paste and then inspect the editable region, and ensure that there is a tab span at the beginning of the editable div.</div>
2 <div id="edit" contenteditable="true"><span class="Apple-tab-span" style="white-space:pre;">    </span>xxx</div>
3 <script>
4 if (window.testRunner)
5         window.testRunner.dumpAsText();
6 edit = document.getElementById("edit");
7
8 window.getSelection().collapse(edit, 0);
9 window.getSelection().modify("extend", "forward", "character");
10 document.execCommand("Copy");
11 window.getSelection().modify("move", "backward", "character");
12 document.execCommand("Paste");
13 if (window.testRunner)
14     document.body.innerText = document.getElementById("description").innerText + "\n\n" + edit.innerHTML;
15 </script>