summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/clear-input-file.html
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2011-05-06 11:45:16 +0100
committerSteve Block <steveblock@google.com>2011-05-12 13:44:10 +0100
commitcad810f21b803229eb11403f9209855525a25d57 (patch)
tree29a6fd0279be608e0fe9ffe9841f722f0f4e4269 /WebCore/manual-tests/clear-input-file.html
parent121b0cf4517156d0ac5111caf9830c51b69bae8f (diff)
downloadexternal_webkit-cad810f21b803229eb11403f9209855525a25d57.zip
external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.gz
external_webkit-cad810f21b803229eb11403f9209855525a25d57.tar.bz2
Merge WebKit at r75315: Initial merge by git.
Change-Id: I570314b346ce101c935ed22a626b48c2af266b84
Diffstat (limited to 'WebCore/manual-tests/clear-input-file.html')
-rw-r--r--WebCore/manual-tests/clear-input-file.html27
1 files changed, 0 insertions, 27 deletions
diff --git a/WebCore/manual-tests/clear-input-file.html b/WebCore/manual-tests/clear-input-file.html
deleted file mode 100644
index f1ef360..0000000
--- a/WebCore/manual-tests/clear-input-file.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<script>
-function clearWithReset()
-{
- document.getElementById("form").reset();
-}
-function clearBySettingValue()
-{
- document.getElementById("file").value = "";
-}
-function clearBySettingValueToNull()
-{
- document.getElementById("file").value = null;
-}
-function clearBySettingValueToX()
-{
- document.getElementById("file").value = "x";
-}
-</script>
-<p>Use this to test the various ways you can clear an input type=file element.</p>
-<form id="form">
-<p>Choose a file here: <input type="file" id="file"></input></p>
-<p>Then press one of these buttons, that should clear the file:
-<input type="button" value="clear with reset()" onclick="clearWithReset()">
-<input type="button" value="clear by setting value to ''" onclick="clearBySettingValue()"></p>
-<p>Or press this button that should clear the file, but won't, due to <a href="http://bugs.webkit.org/show_bug.cgi?id=13448">bug 13448</a>: <input type="button" value="clear by setting value to null" onclick="clearBySettingValueToNull()"></p>
-<p>Or press this button to verify we can't set to a non-empty value: <input type="button" value="clear by setting value to 'x'" onclick="clearBySettingValueToX()"></p>
-</form>