OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Implicit Form Submission</title> | 3 <title>Implicit Form Submission</title> |
4 <script> | 4 <script> |
5 | 5 |
6 var currentTest = 0; | 6 var currentTest = 0; |
7 | 7 |
8 // match IE and FF unless specified otherwise. | 8 // match IE and FF unless specified otherwise. |
9 var allTests = [ | 9 var allTests = [ |
10 [ "Single text input", "!text", "y" ], | 10 [ "Single text input", "!text", "y" ], |
11 [ "Single text input with submit disabled", "!text,-submit", "y" ], | 11 [ "Single text input with submit disabled", "!text,-submit", "n" ], |
12 [ "Multiple text inputs", "!text,text,text", "n" ], | 12 [ "Multiple text inputs", "!text,text,text", "n" ], |
13 [ "Multiple text inputs with submit", "!text,text,text,submit", "y" ], | 13 [ "Multiple text inputs with submit", "!text,text,text,submit", "y" ], |
14 [ "Multiple text inputs with submit disabled", "!text,text,text,-submit", "n
" ], | 14 [ "Multiple text inputs with submit disabled", "!text,text,text,-submit", "n
" ], |
15 [ "Multiple text inputs and multiple submits, first submit disabled", "!text
,text,text,-submit,submit", "y" ], // match IE, not FF. | 15 [ "Multiple text inputs and multiple submits, first submit disabled", "!text
,text,text,-submit,submit", "n" ], // match Gecko + spec, but not IE. |
16 [ "Text input and text area, text input focused", "!text,textarea", "y" ], | 16 [ "Text input and text area, text input focused", "!text,textarea", "y" ], |
17 [ "Text input and text area and a submit, text input focused", "!text,textar
ea,submit", "y" ], | 17 [ "Text input and text area and a submit, text input focused", "!text,textar
ea,submit", "y" ], |
18 [ "Text input and text area and a disabled submit, text input focused", "!te
xt,textarea,-submit", "y" ], // match IE, not FF. | 18 [ "Text input and text area and a disabled submit, text input focused", "!te
xt,textarea,-submit", "n" ], // match Gecko + spec, but not IE. |
19 [ "Text input and checkbox, text input focused", "!text,checkbox", "y" ], | 19 [ "Text input and checkbox, text input focused", "!text,checkbox", "y" ], |
20 [ "Text input and radio, text input focused", "!text,radio", "y" ], | 20 [ "Text input and radio, text input focused", "!text,radio", "y" ], |
21 [ "Text input and text area, textarea focused", "text,!textarea", "n" ], | 21 [ "Text input and text area, textarea focused", "text,!textarea", "n" ], |
22 [ "Text input and checkbox, checkbox focused", "text,!checkbox", "n" ], // m
atch IE, not FF. | 22 [ "Text input and checkbox, checkbox focused", "text,!checkbox", "n" ], // m
atch IE, not FF. |
23 [ "Text input and radio, radio focused", "text,!radio", "n" ], // match IE,
not FF. | 23 [ "Text input and radio, radio focused", "text,!radio", "n" ], // match IE,
not FF. |
24 [ "Single radio", "!radio", "n" ], // match IE, not FF. | 24 [ "Single radio", "!radio", "n" ], // match IE, not FF. |
25 [ "Single checkbox", "!checkbox", "n" ], | 25 [ "Single checkbox", "!checkbox", "n" ], |
26 [ "Single checkbox with a submit", "!checkbox,submit", "y" ], | 26 [ "Single checkbox with a submit", "!checkbox,submit", "y" ], |
27 [ "Single checkbox with a submit disabled", "!checkbox,-submit", "n" ], | 27 [ "Single checkbox with a submit disabled", "!checkbox,-submit", "n" ], |
28 [ "Single select", "!select", "n" ], | 28 [ "Single select", "!select", "n" ], |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 } | 142 } |
143 | 143 |
144 </script> | 144 </script> |
145 </head> | 145 </head> |
146 <body onload="runTest()"> | 146 <body onload="runTest()"> |
147 <p>Tests various combinations of form elements and how implicit submission w
orks with them. | 147 <p>Tests various combinations of form elements and how implicit submission w
orks with them. |
148 <div id="arena"></div> | 148 <div id="arena"></div> |
149 <div id="log"></div> | 149 <div id="log"></div> |
150 </body> | 150 </body> |
151 </html> | 151 </html> |
OLD | NEW |