Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: LayoutTests/fast/events/click-focus-keydown-no-ring.html

Issue 562653002: Do not reset mouse focus flag on keydown at anchor elements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add regression test (click-focus-keydown-no-ring) Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/events/click-focus-keydown-no-ring-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 af ter 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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/click-focus-keydown-no-ring-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698