Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / delete-3928305-fix.html
blob2d6fdad12dcfbac269e2e8d5f398443c90c2097d
1 <html>
2 <head>
4 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
6 <style>
7 .editing {
8 border: 2px solid red;
9 padding: 12px;
10 font-size: 24px;
12 </style>
14 <script>
16 function editingTest() {
17 for (i = 0; i < 4; i++)
18 moveSelectionForwardByCharacterCommand();
19 for (i = 0; i < 3; i++)
20 extendSelectionForwardByCharacterCommand();
21 deleteCommand();
24 </script>
26 <title>Editing Test</title>
27 </head>
28 <body contenteditable="true">
30 Should see a blank line between "foo" and "baz"
31 <div style="height: 24px"></div>
33 <div id="root" class="editing">
34 <div id="test">foo</div>bar<div>baz</div>
36 <!--
38 Fix for this bug:
40 <rdar://problem/3928305> selecting an entire line and typing over causes new inserted text at top of document
42 -->
44 <script>
45 runEditingTest();
46 </script>
48 </body>
49 </html>