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

Side by Side Diff: LayoutTests/fast/events/keydown-enter-key-on-focused-element-inside-link.html

Issue 619613005: The link should be activated by enter key on focusing the child element inside the anchor(relanding) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <a id="before" href="#">Before</a>
4 <a id="target" href="#" tabindex="-1"><h1 tabindex="0">EnterMe</h1></a>
5 <script>
6 description("This test ensures that the link is activated by enter key on fo cusing the child element inside the anchor");
7 var clicked = false;
8 document.getElementById('before').focus();
9 document.getElementById('target').addEventListener('click', function() { cli cked = true; });
10
11 if (window.eventSender) {
12 eventSender.keyDown('\t');
13 eventSender.keyDown('\r');
14 }
15 shouldBe("clicked", "true");
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698