Change log level: info -> debug
[framework/web/webkit-efl.git] / LayoutTests / editing / pasteboard / merge-end-5.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div id="test" contenteditable="true"><div style="border: 1px solid red;">This x</div><div style="border: 1px solid blue;">x it.</div></div>
5
6 <script src="../../resources/dump-as-markup.js"></script>
7 <script>
8 if (window.testRunner)
9     testRunner.dumpEditingCallbacks();
10
11 Markup.description('Pasting a paragraph or less into a selection that spans multiple blocks should insert content into the block containing the start of the selection.');
12
13 var s = window.getSelection();
14 var e = document.getElementById("test");
15
16 s.setPosition(e, 0);
17
18 s.modify("move", "forward", "word");
19 s.modify("move", "forward", "character");
20 s.modify("extend", "forward", "word");
21 s.modify("extend", "forward", "word");
22
23 document.execCommand("InsertHTML", false, "<div><div>text should have a red border around</div></div>");
24
25 Markup.dump('test');
26
27 </script>
28 </body>
29 </html>