4 <script src=
"../../resources/dump-as-markup.js"></script>
7 <div contenteditable
id=
"root" class=
"editing"><span id=
"test">hello
<span class=
"Apple-tab-span" style=
"white-space:pre"> </span>world
</span>
11 if (window
.testRunner
)
12 testRunner
.dumpAsText();
14 Markup
.description("This test ensures pasting content before a tab span isn't pasted into the tab span.");
15 var sel
= window
.getSelection();
16 var testSpan
= document
.getElementById("test");
17 sel
.setBaseAndExtent(testSpan
.firstChild
, 0, testSpan
.firstChild
, 5);
19 document
.execCommand("copy");
20 sel
.collapse(testSpan
.firstChild
, 5);
21 document
.execCommand("paste");
22 if (window
.eventSender
)
23 eventSender
.keyDown("a");
25 Markup
.dump("root", "Result")