Change log level: info -> debug
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / paste-match-style-002.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     extendSelectionForwardByLineCommand();
25     cutCommand();
26     boldCommand();
27     pasteAndMatchStyleCommand();
28 }
29
30 </script>
31
32 <title>Editing Test</title> 
33 </head> 
34 <body>
35
36 <div class="explanation">
37 <div class="scenario">
38 Tests: 
39 <br>
40 Pasting and matching style when there is nothing typed, but the typing style is set to bold. This test was created after fixing <A HREF="rdar://problem/3976872">3976872</A>.
41 </div>
42 <div class="expected-results">
43 Expected Results:
44 <br>
45 The pasted word should match the current typing style. In this case, the typing style is set to bold. Should see this content in the red box below:
46 <BR>
47 <b>hello</b>
48 </div>
49 </div>
50
51 <div contenteditable id="root" style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space;">
52 <div id="test" class="editing">
53 hello
54 </div>
55 </div>
56
57 <script>
58 runEditingTest();
59 </script>
60
61 </body>
62 </html>