b4a687421a66c9ffb9a5f271dd10743944ea4343
[WebKit-https.git] / LayoutTests / editing / deleting / smart-delete-003.html
1 <script>
2 if (window.layoutTestController)
3      layoutTestController.dumpEditingCallbacks();
4 </script>
5 <script src=../editing.js language="JavaScript" type="text/JavaScript" ></script>
6 <p>This tests deleting a selection created with a word granularity.  To run it manually, double click on 'bar' and hit delete.  You should see 'foo baz'.</p>
7 <div id="div" contenteditable="true">foo b<span id="target">a</span>r baz</div>
8
9 <script>
10 if (window.layoutTestController) {
11     var target = document.getElementById("target");
12     doubleClick(target.offsetLeft, target.offsetTop);
13     layoutTestController.execCommand("DeleteBackward");
14 }
15 </script>