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