Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 3976872.html
blobf786e479e05ff06da2d9ce39dc7d30e0d863c6fb
1 <html>
2 <head>
4 <style>
5 .editing {
6 border: 1px solid red;
8 </style>
9 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
11 <script>
13 function editingTest() {
14 extendSelectionForwardByLineCommand();
15 copyCommand();
16 boldCommand();
17 moveSelectionBackwardByCharacterCommand();
18 insertParagraphCommand();
19 moveSelectionBackwardByCharacterCommand();
20 pasteAndMatchStyleCommand();
23 </script>
25 <title>Paste and match style on an empty (but styled) line</title>
26 </head>
27 <body>
29 <p>This tests paste and match style on an empty (but styled) line</p>
30 <p>The first line is copied (unstyled), then it's bolded, then a paragraph separator is inserted and the original unstyled line is pasted (with style matching).</p>
32 <hr>
34 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
35 <div id="test" class="editing">this text should end up bold</div>
36 </div>
38 <script>
39 runEditingTest();
40 </script>
42 </body>
43 </html>