Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / selection / move-up-into-wrapped-line.html
blob25d25c64ebfca4be894ff44c032fb790fcefeeb6
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div style="width: 6ex;" contenteditable=true>
5 <div>hello world</div><div><br></div>
6 </div>
7 <script src="../../resources/dump-as-markup.js"></script>
8 <script>
10 Markup.description('This test moves up caret into a wrapped line. \n'
11 + 'i.e. the caret is moved from the empty line below "hello world" to before "world".');
13 var div = document.getElementsByTagName('div')[0];
14 div.focus();
15 getSelection().collapse(div, div.childNodes.length);
16 getSelection().modify('move', 'backward', 'line');
18 Markup.dump(div);
20 </script>
21 </body>
22 </html>