Change log level: info -> debug
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / paste-text-017.html
1 <html> 
2 <head>
3 <style>
4 .editing { 
5     border: 2px solid red; 
6     font-size: 24px; 
7 }
8 .explanation { 
9     border: 2px solid blue; 
10     padding: 12px; 
11     font-size: 24px; 
12     margin-bottom: 24px;
13 }
14 .scenario { margin-bottom: 16px;}
15 .scenario:first-line { font-weight: bold; margin-bottom: 16px;}
16 .expected-results:first-line { font-weight: bold }
17 </style>
18 <script src="../editing.js"></script>
19 <script src="../../resources/dump-as-markup.js"></script>
20 <title>Editing Test</title> 
21 </head> 
22 <body>
23 <div class="explanation">
24 <div class="scenario">
25 Tests: 
26 <br>
27 Copying and pasting a whole line followed by a blank line could remove the blank line incorrectly, as in the case described in 
28 <a href="rdar://problem/3951178">&lt;rdar://problem/3951178&gt;</a> REGRESSION (Mail): blank line lost after pasting as quotation.
29 </div>
30 <div class="expected-results">
31 Expected Results:
32 <br>
33 Should see a blank line between "two" and "three"
34 </div>
35 </div>
36
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 <div>
40 one
41 </div>
42 <div>
43     <br class="khtml-block-placeholder">
44 </div>
45 <div>
46     two
47 </div>
48 <div>
49     <br class="khtml-block-placeholder">
50 </div>
51 <div>
52     three
53 </div>
54 </div>
55 </div>
56 <script>
57
58 Markup.description(document.getElementsByClassName('explanation')[0].textContent);
59
60 function editingTest() {
61     moveSelectionForwardByLineCommand();
62     moveSelectionForwardByLineCommand();
63     extendSelectionForwardByLineCommand();
64     copyCommand();
65     pasteCommand();
66     Markup.dump('root');
67 }
68
69 runEditingTest();
70 </script>
71 </body>
72 </html>