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" />
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) {
22 if (document
.URL
.substring(document
.URL
.indexOf('?') + 1, document
.URL
.length
) == "")
23 testPassed('The formmethod attribute was successfully used');
25 testFailed('The formmethod attribute was not used');
27 if (window
.testRunner
)
28 testRunner
.notifyDone();