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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/radio/radio-arrow-with-modifier-keys.html

Issue 1944923002: Fix for Alt+Left/Right page navigation with focus on radio buttons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
3 <body>
bokan 2016/05/04 12:12:13 As per layout tests style, <body> tags should be o
4 <script src="../resources/common.js"></script>
5
6 <script src="../../../resources/js-test.js"></script>
7
8 <form>
9 <input type="radio" name="fruit" id="apple">
10 <input type="radio" name="fruit" id="banana">
11 <input type="radio" name="fruit" id="cherry">
12 </form>
13
14 <script>
15 description('Tests behavior of arrow with modifer keys on radio button.');
16
17 clickElement(document.getElementById('banana'));
18 shouldBeTrue('document.getElementById("banana").checked');
19
20 eventSender.keyDown('rightArrow', ['ctrlKey']);
21 shouldBeTrue('document.getElementById("banana").checked');
22
23 eventSender.keyDown('leftArrow', ['shiftKey']);
24 shouldBeTrue('document.getElementById("apple").checked');
25
26 eventSender.keyDown('leftArrow', ['altKey']);
27 shouldBeTrue('document.getElementById("apple").checked');
28 </script>
29
30 </body>
31 </html>
bokan 2016/05/04 12:12:13 Remove </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698