| 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" target="target"> | 7 <form method="GET" target="target"> | 
| 8       <input name="query" value="AAA" /> | 8       <input name="query" value="AAA" /> | 
| 9       <input type="submit" id="submitButton"/> | 9       <input type="submit" id="submitButton"/> | 
| 10 </form> | 10 </form> | 
| 11 <form method="GET" target="target1"> | 11 <form method="GET" target="target1"> | 
| 12       <input name="query1" value="AAA" /> | 12       <input name="query1" value="AAA" /> | 
| 13       <input type="submit" id="submitButton1"/> | 13       <input type="submit" id="submitButton1"/> | 
| 14 </form> | 14 </form> | 
| 15 <iframe id="target" name="target"></iframe> | 15 <iframe id="target" ></iframe> | 
| 16 <iframe id="target1" name="target1"></iframe> | 16 <iframe id="target1" ></iframe> | 
| 17 <script> | 17 <script> | 
| 18 description('Test that form submit within onsubmit event handlers are not delaye
    d and sends the form data when invoked'); | 18 description('Test that form submit within onsubmit event handlers are not delaye
    d and sends the form data when invoked'); | 
| 19 var count = 2; | 19 var count = 2; | 
| 20 | 20 | 
| 21 function asyncTest(query) { | 21 function asyncTest(query) { | 
| 22     if (query === '?query=AAA' || query === '?query1=BBB') { | 22     if (query === '?query=AAA' || query === '?query1=BBB') { | 
| 23         if (--count == 0) { | 23         if (--count == 0) { | 
| 24             testPassed('Both query events received, with correct values: AAA and
     BBB'); | 24             testPassed('Both query events received, with correct values: AAA and
     BBB'); | 
| 25             finishJSTest(); | 25             finishJSTest(); | 
| 26         } | 26         } | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
| 56 | 56 | 
| 57 if (window.testRunner) | 57 if (window.testRunner) | 
| 58     window.jsTestIsAsync = true; | 58     window.jsTestIsAsync = true; | 
| 59 </script> | 59 </script> | 
| 60 </body> | 60 </body> | 
| 61 </html> | 61 </html> | 
| 62 | 62 | 
| 63 | 63 | 
| 64 | 64 | 
| 65 | 65 | 
| OLD | NEW | 
|---|