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

Unified Diff: LayoutTests/fast/forms/file/file-input-reset.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-input-reset.html
diff --git a/LayoutTests/fast/forms/file/file-input-reset.html b/LayoutTests/fast/forms/file/file-input-reset.html
index 9d7cca1b60cc858a1d34108161392e3144d1b34d..c67ebbbd7a5cd692339ef298cb215fe85d8a96ce 100644
--- a/LayoutTests/fast/forms/file/file-input-reset.html
+++ b/LayoutTests/fast/forms/file/file-input-reset.html
@@ -1,4 +1,5 @@
<!DOCTYPE html>
+<script src="resources/file-drag-common.js"></script>
<html>
<head>
</head>
@@ -30,14 +31,6 @@ function click(x, y) {
eventSender.mouseMoveTo(x, y);
eventSender.mouseUp();
}
-
-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();
-}
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698