3 <script src=../editing.js
type=
"text/javascript"></script>
5 function editingTest() {
7 if (!window
.testRunner
)
10 internals
.settings
.setEditingBehavior("mac");
12 extendSelectionForwardByWordCommand();
14 window
.testRunner
.waitUntilDone();
17 var e
= document
.getElementById("dragme");
18 x
= e
.offsetLeft
+ 10;
19 y
= e
.offsetTop
+ e
.offsetHeight
/ 2;
20 eventSender
.mouseMoveTo(x
, y
);
21 eventSender
.mouseDown();
22 // and drop it off to the right somewhere
23 eventSender
.leapForward(500);
24 eventSender
.mouseMoveTo(x
+ 300, y
);
25 eventSender
.mouseUp();
27 window
.testRunner
.notifyDone();
30 <title>Drag and drop within a text input field modifies page
</title>
33 <p>This tests non-smartmove drag/drop. The space should be deleted on move,
34 but not reinserted on drop, resulting in
"worldhello".
</p>
35 <div contenteditable=
"true" id=
"test"><span id=
"dragme">hello
</span> world
</div>
36 <script>runEditingTest();</script>