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

<input type="range">
<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>
<script src="../../js/resources/js-test-post.js"></script>
</body>