blob: 8758392ef879b2217ed3fc6ee651c7cd79346e37 [file] [log] [blame]
ap47ae5ec2006-01-06 15:50:53 +00001<html>
2<head>
3<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
4<title>Regression test for bug 5291</title>
5</head>
6<body>
7 <form method="get" enctype="multipart/form-data" action="?" name=f>
8 <input type="hidden" name="hidden" value="I am hidden">
9 <input type="submit" value="press me">
10 </form>
11<script>
rniwa@webkit.orgea3cf922012-06-22 06:52:33 +000012if (window.testRunner) {
13 testRunner.dumpAsText();
14 testRunner.waitUntilDone();
ap47ae5ec2006-01-06 15:50:53 +000015}
16
17if (document.URL.substring(0, 4) == "file") {
18
19 if (document.URL.indexOf('?') == -1) {
20
21 document.f.submit();
22
23 } else {
24
25 if (document.URL.substring(document.URL.indexOf('?')+1, document.URL.length) == "hidden=I+am+hidden")
26 document.write("<p>Success</p>");
27 else
28 document.write("<p>Failure</p>");
29
rniwa@webkit.orgea3cf922012-06-22 06:52:33 +000030 if (window.testRunner)
31 testRunner.notifyDone();
ap47ae5ec2006-01-06 15:50:53 +000032 }
33
34} else {
35
36 document.write("<p>This test doesn't work directly from bugzilla, please save it to a local file first.</p>");
37}
38</script>
39</body>
40</html>