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

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: 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
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 <script src="../../repaint/resources/text-based-repaint.js"></script>
keishi 2014/09/24 04:32:27 Do we need this?
9
10 <input type="radio" value="1" name="option" id="radio1"/>
11
12 <input type="radio" value="2" name="option" id="radio2"/>
13
14 <input type="radio" value="3" name="option" id="radio3"/>
15
16 <input type="radio" value="4" name="option" id="radio4"/>
keishi 2014/09/24 04:32:27 It would be great to add tests for the complicated
17
18
19
20 <script>
21
22 description('Tests after pressing last radio button in the list, on pressing dow nkey it selects back first radio button');
23 clickElement(document.getElementById('radio4'));
24 shouldBeTrue('document.getElementById("radio4").checked');
25 eventSender.keyDown('downArrow');
26
27 shouldBeTrue('document.getElementById("radio1").checked');
28
29 clickElement(document.getElementById('radio1'));
30 shouldBeTrue('document.getElementById("radio1").checked');
31 eventSender.keyDown('upArrow');
32
33 shouldBeTrue('document.getElementById("radio4").checked');
34
35 </script>
36 </body>
37
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698