Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-inserts-br-after-button.html
blob3de25760ce2b8366d553f532eb80618ac403d94d
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <div>This tests to see if a line break is incorrectly inserted when you delete the content directly following a button.</div>
5 <div id="container" contenteditable="true"><button>button</button> this text should be on the same line as the button</div>
6 <div id="result">FAIL</div>
7 </body>
8 <script>
9 var target = document.getElementById("container");
10 window.getSelection().collapse(target, 1);
11 window.getSelection().modify("move", "right", "character");
12 document.execCommand("delete");
13 if (target.childNodes.length == 2)
14 document.getElementById("result").innerHTML = "PASS";
15 if (window.testRunner)
16 window.testRunner.dumpAsText();
17 </script>
18 </html>