Change log level: info -> debug
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / pasting-empty-html-falls-back-to-text.html
1 <html>
2 <head>
3 <script>
4 function handleCopy(event)
5 {
6   event.clipboardData.setData('text/html', '');
7   event.clipboardData.setData('text/plain', '\nPASS');
8   event.preventDefault();
9 }
10
11 function runTest()
12 {
13   if (!window.testRunner)
14     return;
15   testRunner.dumpAsText();
16
17   document.body.addEventListener('copy', handleCopy);
18   document.execCommand('copy');
19   var selection = window.getSelection();
20   var range = document.createRange();
21   range.selectNode(document.getElementById('description'));
22   selection.addRange(range);
23   selection.collapseToEnd();
24   document.execCommand('paste');
25 }
26 </script>
27 <body onload="runTest()" contenteditable="true">
28 <p id="description">This test requires DRT. It verifies that pasting in a richly editable area falls back to text if the HTML content is an empty string.
29 </body>
30 </html>