4 <div id=
"div" contenteditable=
"true"><br></div>
5 <script src=
"../../resources/dump-as-markup.js"></script>
7 var div
= document
.getElementById("div");
10 if (window
.testRunner
)
11 testRunner
.dumpEditingCallbacks();
13 document
.execCommand("InsertText", false, "This text should be red.");
14 document
.execCommand("InsertParagraph");
15 document
.execCommand("InsertText", false, "This text should be red.");
16 document
.execCommand("SelectAll");
17 document
.execCommand("ForeColor", false, "red");
18 document
.execCommand("Copy");
19 window
.getSelection().modify("move", "forward", "character");
20 document
.execCommand("InsertParagraph");
21 document
.execCommand("Paste");
23 Markup
.description('This tests for a bug where text copied with Select All + Copy would lose its color.');