Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / 4076267-2.html
blob1f2bba09f4c44dbf56e0018038e6cff42ad1e3ec
1 <html>
2 <head>
4 <link rel=stylesheet href="../editingStyle.css" type="text/css">
5 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
7 <script>
9 function editingTest() {
10 extendSelectionForwardByLineCommand();
11 moveSelectionForwardByCharacterCommand();
12 moveSelectionBackwardByCharacterCommand();
13 extendSelectionBackwardByLineCommand();
14 copyCommand();
15 deleteCommand();
16 pasteAndMatchStyleCommand();
20 </script>
22 <title>Pasting plain text loses leading/trailing whitespace</title>
23 </head>
24 <body>
26 <p>This tests to see if trailing spaces are lost during a copy/paste</p>
28 <hr>
30 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
31 <div id="test" class="editing">there should be a single trailing space between the '.' and the last character in this sentence .</div>
32 </div>
34 <script>
35 runEditingTest();
36 </script>
38 </body>
39 </html>