OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../resources/js-test.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <form method="GET" id="form" onsubmit="formSubmit();afterSubmit(form);" target="
target"> | 7 <form method="GET" id="form" onsubmit="formSubmit();afterSubmit(form);" target="
target"> |
8 <input type="text" id="textData" name="textData" value="a"> | 8 <input type="text" id="textData" name="textData" value="a"> |
9 <input type="submit" id="submitButton" name="submitform" value="Step"> | 9 <input type="submit" id="submitButton" name="submitform" value="Step"> |
10 </form> | 10 </form> |
(...skipping 14 matching lines...) Expand all Loading... |
25 form.appendChild(hidden); | 25 form.appendChild(hidden); |
26 form.submit(); | 26 form.submit(); |
27 return true; | 27 return true; |
28 } | 28 } |
29 | 29 |
30 function afterSubmit(form) | 30 function afterSubmit(form) |
31 { | 31 { |
32 form.removeChild(hidden); | 32 form.removeChild(hidden); |
33 } | 33 } |
34 | 34 |
35 document.getElementById('target').onload = function(event) { | |
36 shouldBeEqualToString('event.target.contentWindow.location.search', '?textDa
ta=b&submitform=Step'); | |
37 finishJSTest(); | |
38 } | |
39 | |
40 window.onload = function() { | 35 window.onload = function() { |
| 36 document.getElementById('target').onload = function(event) { |
| 37 shouldBeEqualToString('event.target.contentWindow.location.search', '?te
xtData=b&submitform=Step'); |
| 38 finishJSTest(); |
| 39 } |
41 document.getElementById('submitButton').click(); | 40 document.getElementById('submitButton').click(); |
42 } | 41 } |
43 | 42 |
44 if (window.testRunner) | 43 if (window.testRunner) |
45 window.jsTestIsAsync = true; | 44 window.jsTestIsAsync = true; |
46 </script> | 45 </script> |
47 </body> | 46 </body> |
48 </html> | 47 </html> |
OLD | NEW |