Skip media source tests since the feature is not enabled on Windows.
[WebKit-https.git] / LayoutTests / fast / forms / formmethod-attribute-input-html.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <p id="description"></p>
8 <div id="console"></div>
9 <form method="get" action="?">
10     <input type="hidden" name="hidden" value="I am hidden" />
11     <input id="button" formmethod="post" type="submit" name="button" />
12 </form>
13 <script>
14 description("Test for the formmethod attribute in input tags.");
15 if (window.testRunner) {
16     testRunner.waitUntilDone();
17 }
18
19 var button = document.getElementById('button');
20
21 if (document.URL.substring(0, 4) == "file") {
22     if (document.URL.indexOf('?') == -1) {
23         button.click();
24     } else {
25         if (document.URL.substring(document.URL.indexOf('?') + 1, document.URL.length) == "")
26             testPassed('The formmethod attribute was successfully used');
27         else
28             testFailed('The formmethod attribute was not used');
29
30         if (window.testRunner)
31             testRunner.notifyDone();
32     }
33 }
34 </script>
35 <script src="../../resources/js-test-post.js"></script>
36 </body>
37 </html>