Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / style / 5065910.html
blob3674472d1979a90f8a95b59d58ceb123d2b043c3
1 <p>This tests for a bug where the color of pasted text couldn't be changed.'</p>
2 <div id="div" contenteditable="true"><br></div>
4 <script>
5 var div = document.getElementById("div");
6 div.focus();
8 document.execCommand("InsertText", false, "This text should be red.");
9 document.execCommand("SelectAll");
10 document.execCommand("ForeColor", false, "red");
11 document.execCommand("Copy");
12 window.getSelection().modify("move", "forward", "character");
13 document.execCommand("InsertParagraph");
14 document.execCommand("Paste");
15 window.getSelection().modify("extend", "backward", "paragraphBoundary");
16 document.execCommand("ForeColor", false, "blue");
17 window.getSelection().modify("move", "forward", "character");
18 window.getSelection().modify("move", "backward", "word");
19 document.execCommand("ForeColor", false, "green");
20 document.execCommand("InsertText", false, "a combination of green and blue, not ");
21 </script>