8 testRunner
.dumpAsText();
10 function moveMouseToCenterOfElement(element
)
12 var centerX
= element
.offsetLeft
+ element
.offsetWidth
/ 2;
13 var centerY
= element
.offsetTop
+ element
.offsetHeight
/ 2;
14 eventSender
.mouseMoveTo(centerX
, centerY
);
19 window
.scrollBy(0, 1000);
20 if (window
.eventSender
) {
21 eventSender
.beginDragWithFiles(["resources/drag-file-crash-pass.html"]);
22 var fileInput
= document
.getElementById('file');
23 moveMouseToCenterOfElement(fileInput
);
24 eventSender
.mouseUp();
29 <div id=
"scroller"></div>
30 <input type=
"file" id=
"file">
31 This is a test for https://bugs.webkit.org/show_bug.cgi?id=
29276. It passes if it does not crash. If not run from DRT, drag a file onto the file input.