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

Unified Diff: LayoutTests/fast/forms/file/input-file-directory-upload.html

Issue 40513003: Delete/move the remaining stale tests in TestExpectations. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: delete plugins/reentrant-update-widget-positions.html as well Created 7 years, 2 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/input-file-directory-upload.html
diff --git a/LayoutTests/fast/forms/file/input-file-directory-upload.html b/LayoutTests/fast/forms/file/input-file-directory-upload.html
deleted file mode 100644
index 7f7af0d36b35fac787f3ea7ba96b037a5899837d..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/forms/file/input-file-directory-upload.html
+++ /dev/null
@@ -1,85 +0,0 @@
-<!DOCTYPE html>
-<html>
-<body>
-<input type="file" name="files" id="files" webkitdirectory>
-<pre id='output'></pre>
-
-<script>
-var testFileList1 = [
- {'path': 'resources/dirupload/path1/file1', 'expect-relpath': 'dirupload/path1/file1'},
- {'path': 'resources/dirupload/path1/file2', 'expect-relpath': 'dirupload/path1/file2' },
- {'path': 'resources/dirupload/path1/subpath1/file1', 'expect-relpath': 'dirupload/path1/subpath1/file1'},
- {'path': 'resources/dirupload/path2/file1', 'expect-relpath': 'dirupload/path2/file1'},
- {'path': 'resources/dirupload/path2/subpath1/subpath2/file1', 'expect-relpath': 'dirupload/path2/subpath1/subpath2/file1'},
- {'path': 'resources/dirupload/path2/file2', 'expect-relpath': 'dirupload/path2/file2'},
- {'path': 'resources/dirupload/path3/file1', 'expect-relpath': 'dirupload/path3/file1'},
- {'path': 'resources/dirupload/file1', 'expect-relpath': 'dirupload/file1'},
-];
-
-var testFileList2 = [
- {'path': 'resources/dirupload/path1/file1', 'expect-relpath': 'path1/file1'},
- {'path': 'resources/dirupload/path1/file2', 'expect-relpath': 'path1/file2' },
-];
-
-var testFileList3 = [
- {'path': 'resources/dirupload/path1/file1', 'expect-relpath': 'dirupload/path1/file1'},
- {'path': 'resources/dirupload/path2/file1', 'expect-relpath': 'dirupload/path2/file1' },
-];
-
-var testFileList4 = [
- {'path': 'resources/dirupload/path1/file1', 'expect-relpath': 'path1/file1'},
- {'path': 'resources/dirupload/path1/subpath1/file1', 'expect-relpath': 'path1/subpath1/file1' },
-];
-
-var testFileList5 = [
- {'path': '/foo/baz', 'expect-relpath': 'foo/baz'},
- {'path': '/foo/bar/baz', 'expect-relpath': 'foo/bar/baz'},
- {'path': '/foo2/baz', 'expect-relpath': 'foo2/baz'},
-];
-
-function log(message)
-{
- document.getElementById('output').appendChild(document.createTextNode(message + "\n"));
-}
-
-function onInputFileChange(currentFileList, lastTest)
-{
- var files = document.getElementById("files").files;
- for (var i = 0; i < files.length; i++) {
- if (files[i].webkitRelativePath != currentFileList[i]['expect-relpath'])
- log("FAIL: name is " + files[i].name + "; path is " + files[i].webkitRelativePath + " but should be " + currentFileList[i]['expect-relpath']);
- else
- log("PASS: name is " + files[i].name + "; path is " + files[i].webkitRelativePath);
- }
-
- if (lastTest && testRunner)
- testRunner.notifyDone();
- else
- log("");
-}
-
-function doTest(fileList, last)
-{
- var pathsOnly = fileList.map(function(item) { return item['path'];});
- var f = function() { onInputFileChange(fileList, last); };
- document.getElementById("files").onchange = f;
- eventSender.beginDragWithFiles(pathsOnly);
- eventSender.mouseMoveTo(10, 10);
- eventSender.mouseUp();
-}
-
-if (testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
-}
-
-if (window.eventSender) {
- doTest(testFileList1);
- doTest(testFileList2);
- doTest(testFileList3);
- doTest(testFileList4);
- doTest(testFileList5, true);
-}
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698