Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / platform / win / editing / pasteboard / smart-paste-003-expected.txt
blob6a61daaf29386e97ad740f6e38b8918a23e3ca66
1 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
2 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
5 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
7 EDITING DELEGATE: webViewDidChange:WebViewDidChangeNotification
8 | <!DOCTYPE html>
9 | <html>
10 |   <head>
11 |     "
13 |     <script>
14 |       src="../../resources/dump-as-markup.js"
15 |     "
17 |     <style>
18 |       "
19 .editing { 
20     border: 2px solid red; 
21     font-size: 24px; 
23 .explanation { 
24     border: 2px solid blue; 
25     padding: 12px; 
26     font-size: 24px; 
27     margin-bottom: 24px;
29 .scenario { margin-bottom: 16px;}
30 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
31 .expected-results:first-line { font-weight: bold }
33 |     "
35 |   " 
37 |   <body>
38 |     "
40 |     <div>
41 |       class="explanation"
42 |       "
44 |       <div>
45 |         class="scenario"
46 |         "
47 Tests: 
49 |         <br>
50 |         "
51 Smart paste when pasting after a word and before a space and another word.
53 |       "
55 |       <div>
56 |         class="expected-results"
57 |         "
58 Expected Results:
60 |         <br>
61 |         "
62 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:
64 |         <br>
65 |         "
66 test test test
68 |       "
70 |     "
73 |     <div>
74 |       contenteditable=""
75 |       id="root"
76 |       style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;"
77 |       "
79 |       <div>
80 |         class="editing"
81 |         id="test"
82 |         "
83 test test <#selection-anchor>test<#selection-focus>"
84 |       " "
85 |       "
87 |     "
89 |     <script>
90 |       src="../editing.js"
91 |     "
93 |     <script>
94 |       "
96 function editingTest() {
97     doubleClickAtSelectionStart();
98     copyCommand();
99     moveSelectionForwardByCharacterCommand();
100     pasteCommand();
103 runDumpAsTextEditingTest(true);
105 |     <ol>
106 |       <li>
107 |         "execCopyCommand: 
108 <div id="test" class="editing">
109 test test
110 </div>
112 |       <li>
113 |         "execPasteCommand: 
114 <div id="test" class="editing">
115 test&nbsp;test&nbsp;test</div>&nbsp;
117 |     "