Change log level: info -> debug
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / paste-line-endings-006.html
1 <html> 
2 <head>
3
4 <style>
5 .editing { 
6     border: 2px solid red; 
7     font-size: 24px; 
8 }
9 .explanation { 
10     border: 2px solid blue; 
11     padding: 12px; 
12     font-size: 24px; 
13     margin-bottom: 24px;
14 }
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 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
20
21 <script>
22
23 function editingTest() {
24     for (i = 0; i < 8; i++)
25         moveSelectionForwardByCharacterCommand();
26     for (i = 0; i < 2; i++)
27         extendSelectionForwardByCharacterCommand();
28     copyCommand();
29     pasteCommand();
30 }
31
32 </script>
33
34 <title>Editing Test</title> 
35 </head> 
36 <body>
37
38 <div class="explanation">
39 <div class="scenario">
40 Tests: 
41 <br>
42 Fix for this bug: 
43 <a href="rdar://problem/4045513">&lt;rdar://problem/4045513&gt;</a> Copying and pasting selection starting at end of paragraph can incorrectly remove line break
44 </div>
45 <div class="expected-results">
46 Expected Results:
47 <br>
48 Should see two lines of text below, self-documenting themselves as "line one" and "line two". The insertion point must
49 be after the first character ("l") of "line two".
50 </div>
51 </div>
52
53 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
54 <div id="test" class="editing">
55 line one<br>line two
56 </div>
57 </div>
58
59 <script>
60 runEditingTest();
61 </script>
62
63 </body>
64 </html>