Change log level: info -> debug
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / interchange-newline-1.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="test" contenteditable="true">xx</div>
5 <script src="../../resources/dump-as-markup.js"></script>
6 <script>
7 if (window.testRunner)
8     testRunner.dumpEditingCallbacks();
9
10 Markup.description('There is an interchange newline at the end of the incoming fragment. "bar" and "x" should be in separate paragraphs\n'
11 + 'The paragraph "bar" is inside a div wrapped in a span, and the old paste code that handled interchange newlines did not handle this case.');
12
13 var s = window.getSelection();
14 var e = document.getElementById("test");
15
16 s.setPosition(e, 0);
17 s.modify("move", "forward", "character");
18 document.execCommand("InsertHTML", false, "<div>foo</div><span><div>bar</div></span><br class='Apple-interchange-newline'>");
19
20 Markup.dump('test');
21
22 </script>
23 </body>
24 </html>