Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: LayoutTests/fast/forms/file/file-reset-in-change.html

Issue 148983008: Reduce test code duplication in fast/forms/file (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 = '';
}
« no previous file with comments | « LayoutTests/fast/forms/file/file-input-reset-validation.html ('k') | LayoutTests/fast/forms/file/input-file-value.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698