summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/submit/submit-focus-by-mouse.html
blob: 9ff0d0e4bd632e78c8cd4a808f0dac432a420820 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<body>
<script>
enablePixelTesting = true;
</script>
<script src="../../../resources/js-test.js"></script>
<script src="../resources/common.js"></script>

<input type="submit">
<div id="console"></div>

<script>
eventSender.mouseMoveTo(800, 600);
description('Clicking on a form control should focus on it.');
var target = document.querySelector('input');
target.addEventListener('focus', function() {
    testPassed('Focus event was dispatched.');
}, false);
clickElement(target);
</script>
</body>