Change log level: info -> debug
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / smart-paste-003-trailing-whitespace.html
1 <html> 
2 <head>
3 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
4 <script>
5 function editingTest() {
6     // Select "hello "
7     window.getSelection().setBaseAndExtent(test.firstChild, 0, test.firstChild, 7);
8     copyCommand();
9     moveSelectionForwardByCharacterCommand();
10     pasteCommand();
11     // Avoid printing nbsp
12     test.innerHTML = "";
13 }
14 </script>
15 <title>Editing Test</title> 
16 </head> 
17 <body>
18 <h1>Smart paste when pasting a word with trailing whitespace after a word and a space before another word.</h1>
19 <p>To run this test manually, select "hello " (including trailing space), copy, and paste.</p>
20
21 <h2>Expected result</h2>
22 <p>A space should be added between the preexisting word and the word that's pasted.
23 No space should be added after the pasted word: <code>hello hello world</code></p>
24
25 <h2>Actual result</h2>
26 <div contenteditable id="root">
27 <div id="test" class="editing" style="font-size: 24px;">
28 hello world
29 </div>
30 </div>
31 <script>
32 runDumpAsTextEditingTest();
33 </script>
34 </body>
35 </html>