2 <svg xmlns=
"http://www.w3.org/2000/svg"
3 xmlns:
xlink=
"http://www.w3.org/1999/xlink"
4 xmlns:
xhtml=
"http://www.w3.org/1999/xhtml">
5 <foreignObject width=
"200" height=
"80">
7 <xhtml:input id=
"src" type=
"text" value=
"Select and drag this text"></xhtml:input>
8 <xhtml:input id=
"dst" type=
"text" value=
"to here"></xhtml:input>
11 <text>PASS without crash in Debug mode.
</text>
15 if (!window.testRunner)
18 testRunner.dumpAsText();
19 testRunner.waitUntilDone();
21 var sourceInput = document.getElementById(
"src");
23 sourceInput.setSelectionRange(
0,
6);
24 var x = sourceInput.offsetLeft +
10;
25 var y = sourceInput.offsetTop + sourceInput.offsetHeight /
2;
26 eventSender.mouseMoveTo(x, y);
27 eventSender.mouseDown();
29 eventSender.leapForward(
500);
31 var destinationInput = document.getElementById(
"dst");
32 eventSender.mouseMoveTo(destinationInput.offsetLeft +
10, destinationInput.offsetTop + destinationInput.offsetHeight /
2);
33 eventSender.mouseUp();
35 sourceInput.parentNode.removeChild(sourceInput);
36 destinationInput.parentNode.removeChild(destinationInput);
38 testRunner.notifyDone();