Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / editing / deleting / smart-delete-across-editable-boundaries-2.html
blobbdf6130e7dfc2050b6c3b16091c25f9a1986c87a
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <p id="description">This tests for a bug where expansion for smart delete would not consider editable boundaries. Only 'foo' should be deleted. You should see ' bar'. &lt;radr://problem/5390681&gt;</p>
5 <div contenteditable="true" id="div">foo
6 <span contenteditable="false"> bar</span></div>
8 <script src="../../resources/dump-as-markup.js"></script>
9 <script>
10 var div = document.getElementById("div");
11 var x = div.offsetLeft;
12 var y = div.offsetTop;
13 eventSender.mouseMoveTo(x, y);
14 eventSender.mouseDown();
15 eventSender.mouseUp();
16 eventSender.mouseDown();
17 eventSender.mouseUp();
18 document.execCommand("Delete");
19 Markup.description(description.textContent);
20 Markup.dump(div);
21 </script>
22 </body>
23 </html>