| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="../../resources/js-test.js"></script> | |
| </head> | |
| <body> | |
| <form> | |
| <input required> | |
| <input type=submit> | |
| </form> | |
| <div id=console></div> | |
| <script> | |
| window.jsTestIsAsync = true; | |
| function check() { | |
| testPassed('Not crashed.'); | |
| finishJSTest(); | |
| } | |
| if (window.testRunner) { | |
| setTimeout(check, 10); | |
| document.getElementsByTagName('input')[1].click(); | |
| } else { | |
| debug('Click the submit button. The test passes if the browser doesn\'t crash.'); | |
| } | |
| </script> | |
| </body> | |
| </html> |