summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-focus-by-mouse.html
blob: 8c90d2da5fca5f39e1515b94f8463d17a8d43a79 (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="checkbox">
<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>