diff options
author | tkent@chromium.org <tkent@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2011-10-07 09:19:07 +0000 |
---|---|---|
committer | tkent@chromium.org <tkent@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2011-10-07 09:19:07 +0000 |
commit | 8dd5385c7d0ca91ad90078e646934f050e77709a (patch) | |
tree | ddcaec21dce578834cc9b98af2c2a3823852e057 /third_party/WebKit/LayoutTests/fast/forms/file/get-file-upload.html | |
parent | 0ace3c0cf914f9dae192a8d8a190a6c85b2f77f3 (diff) | |
download | chromium_src-8dd5385c7d0ca91ad90078e646934f050e77709a.zip chromium_src-8dd5385c7d0ca91ad90078e646934f050e77709a.tar.gz chromium_src-8dd5385c7d0ca91ad90078e646934f050e77709a.tar.bz2 |
Move <input type=file> tests to fast/forms/file/
https://bugs.webkit.org/show_bug.cgi?id=69504
Reviewed by Hajime Morita.
* fast/forms/file-input-change-event-expected.txt: Removed.
* fast/forms/file-input-change-event.html: Removed.
* fast/forms/file-input-direction.html: Removed.
* fast/forms/file-input-disabled.html: Removed.
* fast/forms/file-input-hit-test-expected.txt: Removed.
* fast/forms/file-input-hit-test.html: Removed.
* fast/forms/file-input-reset-expected.html: Removed.
* fast/forms/file-input-reset.html: Removed.
* fast/forms/file/file-input-change-event-expected.txt: Copied from LayoutTests/fast/forms/file-input-change-event-expected.txt.
* fast/forms/file/file-input-change-event.html: Copied from LayoutTests/fast/forms/file-input-change-event.html.
* fast/forms/file/file-input-direction.html: Copied from LayoutTests/fast/forms/file-input-direction.html.
* fast/forms/file/file-input-disabled.html: Copied from LayoutTests/fast/forms/file-input-disabled.html.
* fast/forms/file/file-input-hit-test-expected.txt: Copied from LayoutTests/fast/forms/file-input-hit-test-expected.txt.
* fast/forms/file/file-input-hit-test.html: Copied from LayoutTests/fast/forms/file-input-hit-test.html.
* fast/forms/file/file-input-reset-expected.html: Copied from LayoutTests/fast/forms/file-input-reset-expected.html.
* fast/forms/file/file-input-reset.html: Copied from LayoutTests/fast/forms/file-input-reset.html.
* fast/forms/file/get-file-upload-expected.txt: Copied from LayoutTests/fast/forms/get-file-upload-expected.txt.
* fast/forms/file/get-file-upload.html: Copied from LayoutTests/fast/forms/get-file-upload.html.
* fast/forms/file/hidden-input-file-expected.html: Copied from LayoutTests/fast/forms/hidden-input-file.html.
* fast/forms/file/hidden-input-file.html: Copied from LayoutTests/fast/forms/hidden-input-file.html.
* fast/forms/file/input-file-directory-upload-expected.txt: Copied from LayoutTests/fast/forms/input-file-directory-upload-expected.txt.
* fast/forms/file/input-file-directory-upload.html: Copied from LayoutTests/fast/forms/input-file-directory-upload.html.
* fast/forms/file/input-file-label-expected.txt: Copied from LayoutTests/fast/forms/input-file-label-expected.txt.
* fast/forms/file/input-file-label.html: Copied from LayoutTests/fast/forms/input-file-label.html.
* fast/forms/file/input-file-not-open-without-gesture-expected.txt: Copied from LayoutTests/fast/forms/input-file-not-open-without-gesture-expected.txt.
* fast/forms/file/input-file-not-open-without-gesture.html: Copied from LayoutTests/fast/forms/input-file-not-open-without-gesture.html.
* fast/forms/file/input-file-re-render.html: Copied from LayoutTests/fast/forms/input-file-re-render.html.
* fast/forms/get-file-upload-expected.txt: Removed.
* fast/forms/get-file-upload.html: Removed.
* fast/forms/hidden-input-file.html: Removed.
* fast/forms/input-file-directory-upload-expected.txt: Removed.
* fast/forms/input-file-directory-upload.html: Removed.
* fast/forms/input-file-label-expected.txt: Removed.
* fast/forms/input-file-label.html: Removed.
* fast/forms/input-file-not-open-without-gesture-expected.txt: Removed.
* fast/forms/input-file-not-open-without-gesture.html: Removed.
* fast/forms/input-file-re-render.html: Removed.
* platform/chromium-cg-mac-leopard/fast/forms/file: Added.
* platform/chromium-cg-mac-leopard/fast/forms/file-input-direction-expected.png: Removed.
* platform/chromium-cg-mac-leopard/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/chromium-cg-mac-leopard/fast/forms/file-input-direction-expected.png.
* platform/chromium-cg-mac-leopard/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/chromium-cg-mac-leopard/fast/forms/input-file-re-render-expected.png.
* platform/chromium-cg-mac-leopard/fast/forms/input-file-re-render-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/file: Added.
* platform/chromium-cg-mac/fast/forms/file-input-direction-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/file-input-direction-expected.txt: Removed.
* platform/chromium-cg-mac/fast/forms/file-input-disabled-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/chromium-cg-mac/fast/forms/file-input-direction-expected.png.
* platform/chromium-cg-mac/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/chromium-cg-mac/fast/forms/file-input-direction-expected.txt.
* platform/chromium-cg-mac/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/chromium-cg-mac/fast/forms/file-input-disabled-expected.png.
* platform/chromium-cg-mac/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/chromium-cg-mac/fast/forms/input-file-re-render-expected.png.
* platform/chromium-cg-mac/fast/forms/hidden-input-file-expected.txt: Removed.
* platform/chromium-cg-mac/fast/forms/input-file-re-render-expected.png: Removed.
* platform/chromium-linux/fast/forms/file: Added.
* platform/chromium-linux/fast/forms/file-input-direction-expected.png: Removed.
* platform/chromium-linux/fast/forms/file-input-direction-expected.txt: Removed.
* platform/chromium-linux/fast/forms/file-input-disabled-expected.png: Removed.
* platform/chromium-linux/fast/forms/file-input-disabled-expected.txt: Removed.
* platform/chromium-linux/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/chromium-linux/fast/forms/file-input-direction-expected.png.
* platform/chromium-linux/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/chromium-linux/fast/forms/file-input-direction-expected.txt.
* platform/chromium-linux/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/chromium-linux/fast/forms/file-input-disabled-expected.png.
* platform/chromium-linux/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/chromium-linux/fast/forms/file-input-disabled-expected.txt.
* platform/chromium-linux/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/chromium-linux/fast/forms/input-file-re-render-expected.png.
* platform/chromium-linux/fast/forms/file/input-file-re-render-expected.txt: Copied from LayoutTests/platform/chromium-linux/fast/forms/input-file-re-render-expected.txt.
* platform/chromium-linux/fast/forms/hidden-input-file-expected.png: Removed.
* platform/chromium-linux/fast/forms/hidden-input-file-expected.txt: Removed.
* platform/chromium-linux/fast/forms/input-file-re-render-expected.png: Removed.
* platform/chromium-linux/fast/forms/input-file-re-render-expected.txt: Removed.
* platform/chromium-mac/fast/forms/file: Added.
* platform/chromium-mac/fast/forms/file-input-direction-expected.png: Removed.
* platform/chromium-mac/fast/forms/file-input-direction-expected.txt: Removed.
* platform/chromium-mac/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/chromium-mac/fast/forms/file-input-direction-expected.png.
* platform/chromium-mac/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/chromium-mac/fast/forms/file-input-direction-expected.txt.
* platform/chromium-mac/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/chromium-mac/fast/forms/input-file-re-render-expected.png.
* platform/chromium-mac/fast/forms/hidden-input-file-expected.png: Removed.
* platform/chromium-mac/fast/forms/hidden-input-file-expected.txt: Removed.
* platform/chromium-mac/fast/forms/input-file-re-render-expected.png: Removed.
* platform/chromium-win/fast/forms/file: Added.
* platform/chromium-win/fast/forms/file-input-direction-expected.png: Removed.
* platform/chromium-win/fast/forms/file-input-direction-expected.txt: Removed.
* platform/chromium-win/fast/forms/file-input-disabled-expected.png: Removed.
* platform/chromium-win/fast/forms/file-input-disabled-expected.txt: Removed.
* platform/chromium-win/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/chromium-win/fast/forms/file-input-direction-expected.png.
* platform/chromium-win/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/forms/file-input-direction-expected.txt.
* platform/chromium-win/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/chromium-win/fast/forms/file-input-disabled-expected.png.
* platform/chromium-win/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/forms/file-input-disabled-expected.txt.
* platform/chromium-win/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/chromium-win/fast/forms/input-file-re-render-expected.png.
* platform/chromium-win/fast/forms/file/input-file-re-render-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/forms/input-file-re-render-expected.txt.
* platform/chromium-win/fast/forms/hidden-input-file-expected.png: Removed.
* platform/chromium-win/fast/forms/hidden-input-file-expected.txt: Removed.
* platform/chromium-win/fast/forms/input-file-re-render-expected.png: Removed.
* platform/chromium-win/fast/forms/input-file-re-render-expected.txt: Removed.
* platform/chromium/test_expectations.txt:
* platform/gtk/Skipped:
* platform/gtk/fast/forms/file: Added.
* platform/gtk/fast/forms/file-input-direction-expected.png: Removed.
* platform/gtk/fast/forms/file-input-direction-expected.txt: Removed.
* platform/gtk/fast/forms/file-input-disabled-expected.png: Removed.
* platform/gtk/fast/forms/file-input-disabled-expected.txt: Removed.
* platform/gtk/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/gtk/fast/forms/file-input-direction-expected.png.
* platform/gtk/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/gtk/fast/forms/file-input-direction-expected.txt.
* platform/gtk/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/gtk/fast/forms/file-input-disabled-expected.png.
* platform/gtk/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/gtk/fast/forms/file-input-disabled-expected.txt.
* platform/gtk/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/gtk/fast/forms/input-file-re-render-expected.png.
* platform/gtk/fast/forms/file/input-file-re-render-expected.txt: Copied from LayoutTests/platform/gtk/fast/forms/input-file-re-render-expected.txt.
* platform/gtk/fast/forms/hidden-input-file-expected.png: Removed.
* platform/gtk/fast/forms/hidden-input-file-expected.txt: Removed.
* platform/gtk/fast/forms/input-file-re-render-expected.png: Removed.
* platform/gtk/fast/forms/input-file-re-render-expected.txt: Removed.
* platform/mac-leopard/fast/forms/file: Added.
* platform/mac-leopard/fast/forms/file-input-direction-expected.png: Removed.
* platform/mac-leopard/fast/forms/file-input-disabled-expected.png: Removed.
* platform/mac-leopard/fast/forms/file-input-disabled-expected.txt: Removed.
* platform/mac-leopard/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/mac-leopard/fast/forms/file-input-direction-expected.png.
* platform/mac-leopard/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/mac-leopard/fast/forms/file-input-disabled-expected.png.
* platform/mac-leopard/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/mac-leopard/fast/forms/file-input-disabled-expected.txt.
* platform/mac-leopard/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/mac-leopard/fast/forms/input-file-re-render-expected.png.
* platform/mac-leopard/fast/forms/hidden-input-file-expected.png: Removed.
* platform/mac-leopard/fast/forms/input-file-re-render-expected.png: Removed.
* platform/mac/Skipped:
* platform/mac/fast/forms/file: Added.
* platform/mac/fast/forms/file-input-direction-expected.png: Removed.
* platform/mac/fast/forms/file-input-direction-expected.txt: Removed.
* platform/mac/fast/forms/file-input-disabled-expected.png: Removed.
* platform/mac/fast/forms/file-input-disabled-expected.txt: Removed.
* platform/mac/fast/forms/file/file-input-direction-expected.png: Copied from LayoutTests/platform/mac/fast/forms/file-input-direction-expected.png.
* platform/mac/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/mac/fast/forms/file-input-direction-expected.txt.
* platform/mac/fast/forms/file/file-input-disabled-expected.png: Copied from LayoutTests/platform/mac/fast/forms/file-input-disabled-expected.png.
* platform/mac/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/mac/fast/forms/file-input-disabled-expected.txt.
* platform/mac/fast/forms/file/input-file-re-render-expected.png: Copied from LayoutTests/platform/mac/fast/forms/input-file-re-render-expected.png.
* platform/mac/fast/forms/file/input-file-re-render-expected.txt: Copied from LayoutTests/platform/mac/fast/forms/input-file-re-render-expected.txt.
* platform/mac/fast/forms/hidden-input-file-expected.png: Removed.
* platform/mac/fast/forms/hidden-input-file-expected.txt: Removed.
* platform/mac/fast/forms/input-file-re-render-expected.png: Removed.
* platform/mac/fast/forms/input-file-re-render-expected.txt: Removed.
* platform/qt/Skipped:
* platform/qt/fast/forms/file: Added.
* platform/qt/fast/forms/file-input-direction-expected.txt: Removed.
* platform/qt/fast/forms/file-input-disabled-expected.txt: Removed.
* platform/qt/fast/forms/file/file-input-direction-expected.txt: Copied from LayoutTests/platform/qt/fast/forms/file-input-direction-expected.txt.
* platform/qt/fast/forms/file/file-input-disabled-expected.txt: Copied from LayoutTests/platform/qt/fast/forms/file-input-disabled-expected.txt.
* platform/qt/fast/forms/hidden-input-file-expected.txt: Removed.
* platform/win/Skipped:
git-svn-id: svn://svn.chromium.org/blink/trunk@96918 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/forms/file/get-file-upload.html')
-rw-r--r-- | third_party/WebKit/LayoutTests/fast/forms/file/get-file-upload.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/forms/file/get-file-upload.html b/third_party/WebKit/LayoutTests/fast/forms/file/get-file-upload.html new file mode 100644 index 0000000..83e59cb --- /dev/null +++ b/third_party/WebKit/LayoutTests/fast/forms/file/get-file-upload.html @@ -0,0 +1,42 @@ +<!DOCTYPE html> +<html> +<body> +<form method="GET" action="get-file-upload.html" enctype="application/x-www-form-urlencoded"> + <input type="file" name="file" id="file"> + <input type="hidden" name="submitted" value="true"> +</form> +<pre id='console'></pre> + +<script> +function log(message) +{ + document.getElementById('console').appendChild(document.createTextNode(message + "\n")); +} + +function startOrVerify() +{ + var query = window.location.search; + if (query.indexOf('submitted=true') != -1) { + // Verify the result + if (query.indexOf('file=') != -1) + log('PASS: ' + query); + else + log('FAIL: ' + query); + layoutTestController.dumpAsText(); + layoutTestController.notifyDone(); + } else { + // Start the test + eventSender.beginDragWithFiles(['get-file-upload.html']); + eventSender.mouseMoveTo(10, 10); + eventSender.mouseUp(); + document.forms[0].submit(); + } +} + +if (window.eventSender) { + layoutTestController.waitUntilDone(); + window.onload = startOrVerify; +} +</script> +</body> +</html> |