| <html> |
| <head> |
| <script> |
| if (window.testRunner) |
| testRunner.dumpEditingCallbacks(); |
| </script> |
| |
| |
| <script> |
| |
| function editingTest() { |
| var elem = document.getElementById("end"); |
| x = elem.offsetLeft + elem.offsetWidth + 10; |
| y = elem.offsetTop + 10; |
| |
| eventSender.mouseMoveTo(x, y); |
| eventSender.mouseDown(); |
| eventSender.mouseUp(); |
| eventSender.mouseDown(); |
| eventSender.mouseUp(); |
| } |
| |
| </script> |
| </head> |
| <body> |
| <p>This tests double clicking inside and at the end of an editable div. The selection that is created should not extend outside the editable region.</p> |
| <div id="editablediv" contenteditable="true">This text is inside an editable div<span id="end"> </span></div> |
| <p style="overflow: hidden;">This text is not editable.</p> |
| </body> |
| <script> |
| editingTest(); |
| </script> |
| </html> |