summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/interactive-validation-attach-assertion.html
blob: e3cc2a9a15e2da357fc2a602b2e93914e41661b2 (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="../js/resources/js-test-pre.js"></script>
</head>
<body>

<form>
<input required>
<input type=submit>
</form>

<div id=console></div>

<script>
function check() {
    testPassed('Not crashed.');
    if (window.layoutTestController)
        layoutTestController.notifyDone();
}

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