3 <script src=../editing.js
type=
"text/javascript"></script>
5 function editingTest() {
7 if (!window
.eventSender
)
9 doubleClickAtSelectionStart();
12 var e
= document
.getElementById("dragme");
14 y
= e
.offsetTop
+ e
.offsetHeight
/ 2;
15 eventSender
.mouseMoveTo(x
, y
);
16 eventSender
.mouseDown();
17 // and drop it off to the right somewhere.
18 eventSender
.leapForward(500);
19 eventSender
.mouseMoveTo(x
+ 300, y
);
20 eventSender
.mouseUp();
23 <title>Drag and drop within a text input field modifies page
</title>
26 <p>Tests that drag/drop after double-click does a smart drag. Specifically the end result should have a space:
"world hello". To test manually double click on the
"hello" and drag it to after
"world".
</p>
27 <div contenteditable=
"true" id=
"test"><span id=
"dragme">hello
</span> world
</div>
28 <script>runEditingTest();</script>