Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-word-from-unstyled-div.html
bloba1552abf16473edd1f49e7f73d0821026a67f416
1 <!DOCTYPE html>
2 <html>
3 <head>
5 <style>
6 .editing {
7 border: 2px solid red;
8 padding: 12px;
9 font-size: 24px;
11 </style>
12 <title>Editing Test</title>
13 </head>
14 <body contenteditable onload="runTest()">
15 <div id="test"><div>one<br>two</div></div>
16 </body>"
17 <script src="../../resources/dump-as-markup.js"></script>
18 <script>
19 function runTest() {
20 Markup.description('This test that the deletion of the last row of an unstyled DIV leaves a BR element and that the selection is where the BR element is.');
21 var element = document.getElementById("test").firstElementChild;
22 getSelection().setBaseAndExtent(element, 2, element, 3);
23 document.execCommand('delete');
24 Markup.dump('test');
26 </script>
27 </html>