Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / checkbox / checkbox-focus-by-mouse.html
blob8c90d2da5fca5f39e1515b94f8463d17a8d43a79
1 <!DOCTYPE html>
2 <body>
3 <script>
4 enablePixelTesting = true;
5 </script>
6 <script src="../../../resources/js-test.js"></script>
7 <script src="../resources/common.js"></script>
9 <input type="checkbox">
10 <div id="console"></div>
12 <script>
13 eventSender.mouseMoveTo(800, 600);
14 description('Clicking on a form control should focus on it.');
15 var target = document.querySelector('input');
16 target.addEventListener('focus', function() {
17 testPassed('Focus event was dispatched.');
18 }, false);
19 clickElement(target);
20 </script>
21 </body>