Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / pasteboard / smart-paste-005.html
blob799047b450c15261fd9ea126112a843373c2b0d7
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>
22 <div class="explanation">
23 <div class="scenario">
24 Tests:
25 <br>
26 Smart paste when pasting in the middle of a word.
27 </div>
28 <div class="expected-results">
29 Expected Results:
30 <br>
31 Spaces should be added before and after the pasted word. It should look like this:
32 <BR>
33 te test st
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
40 </div>
41 </div>
42 <script src="../editing.js"></script>
43 <script>
45 function editingTest() {
46 var target = document.getElementById('test');
47 var x = target.offsetLeft + target.offsetWidth / 2;
48 var y = target.offsetTop + target.offsetHeight / 2;
49 doubleClick(x, y);
50 copyCommand();
51 moveSelectionBackwardByWordCommand();
52 moveSelectionForwardByCharacterCommand();
53 moveSelectionForwardByCharacterCommand();
54 pasteCommand();
57 runDumpAsTextEditingTest(true);
58 </script>
59 </body>
60 </html>