Index: LayoutTests/fast/files/apply-blob-url-to-img.html |
=================================================================== |
--- LayoutTests/fast/files/apply-blob-url-to-img.html (revision 67660) |
+++ LayoutTests/fast/files/apply-blob-url-to-img.html (working copy) |
@@ -29,10 +29,17 @@ |
layoutTestController.notifyDone(); |
} |
+function moveMouseToCenterOfElement(element) |
+{ |
+ var centerX = element.offsetLeft + element.offsetWidth / 2; |
+ var centerY = element.offsetTop + element.offsetHeight / 2; |
+ eventSender.mouseMoveTo(centerX, centerY); |
+} |
+ |
function runTests() |
{ |
eventSender.beginDragWithFiles(['resources/abe.png']); |
- eventSender.mouseMoveTo(10, 10); |
+ moveMouseToCenterOfElement(document.getElementById('file')); |
eventSender.mouseUp(); |
} |