Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / formmethod-attribute-input-2.html
blob02023a364566b041a0c79feeee67833b583a38fd
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/common.js"></script>
6 <form method="get" action="?">
7 <input type="hidden" name="hidden" value="I am hidden" />
8 <input id="button" formmethod="post" type="submit" name="button" />
9 </form>
10 <script>
11 description("Test for the formmethod attribute in input tags.");
12 if (window.testRunner) {
13 testRunner.waitUntilDone();
16 var button = document.getElementById('button');
18 if (document.URL.substring(0, 4) == "file") {
19 if (document.URL.indexOf('?') == -1) {
20 clickElement(button);
21 } else {
22 if (document.URL.substring(document.URL.indexOf('?') + 1, document.URL.length) == "")
23 testPassed('The formmethod attribute was successfully used');
24 else
25 testFailed('The formmethod attribute was not used');
27 if (window.testRunner)
28 testRunner.notifyDone();
31 </script>
32 </body>
33 </html>