Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / smart-paste-004.html
blobf6515156ab9e1ffc19bc3df95cee298533cc3c70
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .editing {
6 border: 2px solid red;
7 font-size: 24px;
9 .explanation {
10 border: 2px solid blue;
11 padding: 12px;
12 font-size: 24px;
13 margin-bottom: 24px;
15 .scenario { margin-bottom: 16px;}
16 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
17 .expected-results:first-line { font-weight: bold }
18 </style>
19 </head>
20 <body>
21 <div class="explanation">
22 <div class="scenario">
23 Tests:
24 <br>
25 Smart paste when pasting after word and a space before another word.
26 </div>
27 <div class="expected-results">
28 Expected Results:
29 <br>
30 A space should be added after the pasted word before the other preexisting word. It should like this:
31 <BR>
32 test test test
33 </div>
34 </div>
36 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
37 <div id="test" class="editing">
38 test test
39 </div>
40 </div>
41 <script src="../editing.js"></script>
42 <script>
44 function editingTest() {
45 doubleClickAtSelectionStart();
46 copyCommand();
47 moveSelectionForwardByCharacterCommand();
48 moveSelectionForwardByCharacterCommand();
49 pasteCommand();
52 runDumpAsTextEditingTest(true);
53 </script>
54 </body>
55 </html>