5 function moveMouseToCenterOfElement(element
)
7 var centerX
= element
.offsetLeft
+ element
.offsetWidth
/ 2;
8 var centerY
= element
.offsetTop
+ element
.offsetHeight
/ 2;
9 eventSender
.mouseMoveTo(centerX
, centerY
);
14 if (window
.testRunner
)
15 testRunner
.dumpAsText();
16 eventSender
.beginDragWithFiles(["fakefile"]);
17 moveMouseToCenterOfElement(document
.getElementById("target"));
18 eventSender
.mouseUp();
23 <p>A crash reproducing test using DRT. The test passes if it doesn't crash.
</p>
24 <body onload=
"test()">
25 <iframe id=
"target" src=
"resources/drop-file-svg.svg"></iframe>