summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/interactive-validation-attach-assertion.html
blob: 5b8a37c7ce57a987c2a696e27c6703a7cc870ef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!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>
function check() {
    testPassed('Not crashed.');
    if (window.testRunner)
        testRunner.notifyDone();
}

if (window.testRunner) {
    testRunner.dumpAsText();
    testRunner.waitUntilDone();
    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>