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

Side by Side Diff: LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html

Issue 546753002: Fix to Handle downkey event on last and first radio button of a radio button list (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: After Adding New Method HTMLElement* findNextFocusableRadioButton() 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
3 <body>
4 <script src="../resources/common.js"></script>
5
6 <script src="../../../resources/js-test.js"></script>
7
8 <input type=radio name=foo id="radio1">
9 <input type=radio name=bar id="radio2">
10 <div><input type=radio name=foo id="radio3"></div>
11
12 <form name=alpha>
13 <input type=radio name=foo id="radio3">
14 <input type=radio name=foo id="radio4">
15 </form>
16
17 <form name=beta>
18 <input type=radio name=foo id="radio5">
19 </form>
20
21 <script>
keishi 2014/09/26 04:25:35 Please incorporate the test cases from http://jsbi
22 document.alpha.appendChild(document.beta);
23 description('Tests after pressing last radio button in the list, on pressing dow nkey it selects back first radio button');
24 clickElement(document.getElementById('radio1'));
25 shouldBeTrue('document.getElementById("radio1").checked');
26 eventSender.keyDown('downArrow');
27 shouldBeTrue('document.getElementById("radio3").checked');
28
29 eventSender.keyDown('downArrow');
30 shouldBeTrue('document.getElementById("radio1").checked');
31
32 eventSender.keyDown('upArrow');
33 shouldBeTrue('document.getElementById("radio3").checked');
34
35
36 clickElement(document.getElementById('radio4'));
37 shouldBeTrue('document.getElementById("radio4").checked');
38 eventSender.keyDown('downArrow');
39
40 shouldBeTrue('document.getElementById("radio3").checked');
41 eventSender.keyDown('upArrow');
42
43 shouldBeTrue('document.getElementById("radio4").checked');
44
45 </script>
46 </body>
47
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698