| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 | 7 |
| 8 <form> | 8 <form> |
| 9 <input required> | 9 <input required> |
| 10 <input type=submit> | 10 <input type=submit> |
| 11 </form> | 11 </form> |
| 12 | 12 |
| 13 <div id=console></div> | 13 <div id=console></div> |
| 14 | 14 |
| 15 <script> | 15 <script> |
| 16 function check() { | 16 function check() { |
| 17 testPassed('Not crashed.'); | 17 testPassed('Not crashed.'); |
| 18 if (window.testRunner) | 18 if (window.testRunner) |
| 19 testRunner.notifyDone(); | 19 testRunner.notifyDone(); |
| 20 } | 20 } |
| 21 | 21 |
| 22 if (window.testRunner) { | 22 if (window.testRunner) { |
| 23 testRunner.dumpAsText(); | 23 testRunner.dumpAsText(); |
| 24 testRunner.waitUntilDone(); | 24 testRunner.waitUntilDone(); |
| 25 setTimeout(check, 10); | 25 setTimeout(check, 10); |
| 26 document.getElementsByTagName('input')[1].click(); | 26 document.getElementsByTagName('input')[1].click(); |
| 27 } else { | 27 } else { |
| 28 debug('Click the submit button. The test passes if the browser doesn\'t cra
sh.'); | 28 debug('Click the submit button. The test passes if the browser doesn\'t cra
sh.'); |
| 29 } | 29 } |
| 30 | 30 |
| 31 </script> | 31 </script> |
| 32 </body> | 32 </body> |
| 33 </html> | 33 </html> |
| OLD | NEW |