Change log level: info -> debug
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / copy-paste-pre-line-content.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p>This tests pasting two lines of text copied from pre content.
5 To manually test, copy the selected text (including the new line) and paste it into textarea twice.
6 There should be no blank line between two pasted lines.</p>
7 <pre oncopy="setTimeout(function () { textarea.focus(); }, 0);">A line of text
8 some other text
9 </pre>
10
11 <textarea cols="10" rows="5" oninput="document.getElementById('console').textContent = textarea.value;"></textarea>
12 <pre id="console"></pre>
13 <script>
14
15 if (window.testRunner)
16     testRunner.dumpAsText();
17
18 var textarea = document.querySelector('textarea');
19
20 getSelection().collapse(document.querySelector('pre'), 0);
21 getSelection().modify('extend', 'forward', 'line');
22
23 if (document.queryCommandSupported('paste')) {
24     document.execCommand('copy', false, null);
25
26     textarea.focus();
27     document.execCommand('paste', false, null);
28     document.execCommand('paste', false, null);
29 }
30
31
32 </script>
33 </body>
34 </html>