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