Index: LayoutTests/fast/forms/file/recover-file-input-in-unposted-form.html |
diff --git a/LayoutTests/fast/forms/file/recover-file-input-in-unposted-form.html b/LayoutTests/fast/forms/file/recover-file-input-in-unposted-form.html |
index 9154a99208aab00f83e02f1bb7194161cc428205..5a4250d7e2147b7ac8bac5187ff75359e9551ee5 100644 |
--- a/LayoutTests/fast/forms/file/recover-file-input-in-unposted-form.html |
+++ b/LayoutTests/fast/forms/file/recover-file-input-in-unposted-form.html |
@@ -1,6 +1,7 @@ |
<html> |
<head> |
<script src="../../../resources/js-test.js"></script> |
+<script src="resources/file-drag-common.js"></script> |
</head> |
<body onload="test()"> |
<form id="form" method="post" enctype="multipart/form-data"> |
@@ -84,18 +85,6 @@ function expectFileContents(file, contents) { |
reader.readAsText(file, "UTF-8"); |
reader.onload = checkFileContents.bind(undefined, contents); |
} |
- |
-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(); |
-} |
</script> |
</body> |
</html> |