Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / empty-get.html
blobb588b5193e1185e7ce224bffea1949847ce6766b
1 <html>
2 <head>
3 <title>Submitting forms with empty data</title>
4 </head>
5 <body>
6 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=8051">bug 8051</a>:
7 Empty forms are submitted incorrectly.</p>
9 <form name="f" method="get" action="">
10 <input type="submit" value="Continue"/>
11 </form>
13 <script>
14 if (window.testRunner) {
15 testRunner.dumpAsText();
16 testRunner.waitUntilDone();
19 if (document.URL.indexOf('?') == -1) {
21 document.f.submit();
23 } else {
25 if (unescape(document.URL.substring(document.URL.indexOf('?')+1, document.URL.length)) == "")
26 document.write("<p>Success</p>");
27 else
28 document.write("<p>Failure</p>");
30 if (window.testRunner)
31 testRunner.notifyDone();
34 </script>
35 </body>
36 </html>