Index: LayoutTests/fast/forms/file/file-reset-in-change.html |
diff --git a/LayoutTests/fast/forms/file/file-reset-in-change.html b/LayoutTests/fast/forms/file/file-reset-in-change.html |
index 4d6a14e37d1ad3f752255dcd24afd6c1c7260037..7e4952e8d4bb3f5ef58a230504c5e8b66faccf59 100644 |
--- a/LayoutTests/fast/forms/file/file-reset-in-change.html |
+++ b/LayoutTests/fast/forms/file/file-reset-in-change.html |
@@ -1,18 +1,11 @@ |
<!DOCTYPE html> |
+<script src="resources/file-drag-common.js"></script> |
<body> |
<p>Resetting a file upload control by script should clear the icon.</p> |
<p>Manual test: Select a file for the file upload control, and confirm it has no icon.</p> |
<input id=file1 type=file> |
</form> |
<script> |
-function dragFilesOntoElement(element, files) { |
- eventSender.beginDragWithFiles(files); |
- var centerX = element.offsetLeft + element.offsetWidth / 2; |
- var centerY = element.offsetTop + element.offsetHeight / 2; |
- eventSender.mouseMoveTo(centerX, centerY); |
- eventSender.mouseUp(); |
-} |
- |
function handleChange() { |
file1.value = ''; |
} |