Index: LayoutTests/fast/forms/file/file-input-reset-validation.html |
diff --git a/LayoutTests/fast/forms/file/file-input-reset-validation.html b/LayoutTests/fast/forms/file/file-input-reset-validation.html |
index 1ba34e6ae9b07cfd3610e7f4fa9412703209ff8c..fbceb7ba0c348c7d98511cefa08b7f45a08ae951 100644 |
--- a/LayoutTests/fast/forms/file/file-input-reset-validation.html |
+++ b/LayoutTests/fast/forms/file/file-input-reset-validation.html |
@@ -1,5 +1,6 @@ |
<!DOCTYPE html> |
<script src="../../../resources/js-test.js"></script> |
+<script src="resources/file-drag-common.js"></script> |
<form method="GET" onsubmit="finish(false)"> |
<input type="file" oninvalid="finish(true)" required> |
<input type="reset"> |
@@ -17,18 +18,6 @@ function finish(pass) |
finishJSTest(); |
} |
-function moveMouseToCenterOfElement(element) { |
- var centerX = element.offsetLeft + element.offsetWidth / 2; |
- var centerY = element.offsetTop + element.offsetHeight / 2; |
- eventSender.mouseMoveTo(centerX, centerY); |
-} |
- |
-function dragFilesOntoInput(input, files) { |
- eventSender.beginDragWithFiles(files); |
- moveMouseToCenterOfElement(input); |
- eventSender.mouseUp(); |
-} |
- |
function startTest() |
{ |
dragFilesOntoInput(document.forms[0].querySelector("[type=file]"), ['file-input-reset-validation.html']); |