| Index: LayoutTests/fast/forms/file/file-input-empty-validation.html
|
| diff --git a/LayoutTests/fast/forms/file/file-input-empty-validation.html b/LayoutTests/fast/forms/file/file-input-empty-validation.html
|
| index 26c12a32be55cb1f6b16f17ae19fc746f10078ee..696c0c6587084487c763a2f4281e12712d466d88 100644
|
| --- a/LayoutTests/fast/forms/file/file-input-empty-validation.html
|
| +++ b/LayoutTests/fast/forms/file/file-input-empty-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="submit">
|
| @@ -16,18 +17,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-empty-validation.html']);
|
|
|