Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |