Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / events / click-focus-keydown-no-ring.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 a { color: blue; }
6 </style>
7 </head>
8 <body>
9 <p>This test ensures that the default focus ring is not drawn on anchors even after pressing a key while the anchor is focused.</p>
10 <p><a id="anchor" href="#">Anchor without tabindex</a></p>
11
12 <script>
13 window.onload = function() {
14     if (window.eventSender) {
15         var aElement = document.getElementById('anchor');
16         eventSender.mouseMoveTo(aElement.offsetLeft + 2, aElement.offsetTop + 2);
17         eventSender.mouseDown();
18         eventSender.keyDown('escape');
19     }
20 };
21 </script>
22 </body>
23 </html>