summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-focus-by-mouse-then-keydown.html
blob: d54a87294ccc79f6c66899c11491b842c7258593 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html>
<body>
<script src="../resources/common.js"></script>
<script src="../../repaint/resources/text-based-repaint.js"></script>
<!-- A keydown event after mouse-focus should draw a focus ring. -->
<input type="checkbox">
<script>
window.onload = runRepaintTest;
window.enablePixelTesting = true;
eventSender.mouseMoveTo(800, 600);
clickElement(document.querySelector('input'));
function repaintTest() {
    eventSender.keyDown('leftShift');
}
</script>
</body>