Change log level: info -> debug
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / contenteditable-pre.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This test copies and pastes content inside pre that is an editing host. WebKit should not clone pre.
5 To manually test, copy and paste "hello" and then paste it into the boxes below.
6 WebKit should not clone pre (nest pre) and the pasted content should not have nested borders.</p>
7 <style> #container pre, #container div {border: solid 2px blue;} </style>
8 <div id="container">
9 <pre contenteditable>hello</pre>
10 <div contenteditable></div>
11 </div>
12 <script src="../../resources/dump-as-markup.js"></script>
13 <script>
14
15 Markup.description(document.getElementById('description').textContent);
16
17 var container = document.querySelector('#container pre');
18 container.focus();
19 document.execCommand('selectAll', false, null);
20 document.execCommand('copy', false, null);
21 document.execCommand('paste', false, null);
22
23 Markup.dump(container, "Pasting into pre; the pre should not be listed below");
24
25 var container = document.querySelector('#container div');
26 container.focus();
27 document.execCommand('paste', false, null);
28
29 Markup.dump(container, "Pasting into div; the pasted content should be in pre");
30
31 </script>
32 </body>
33 </html>