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> | |
| 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"/> | |
| 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')); // Allows clicking on the eleme nt | |
|
Habib Virji
2014/09/10 09:31:52
Comments can be probably removed, wrote them to gi
Paritosh Kumar
2014/09/15 08:38:29
Done.
| |
| 24 shouldBeTrue('document.getElementById("radio4").checked'); // Click element 4, s o should be checked. | |
|
Habib Virji
2014/09/10 09:31:52
ditto
Paritosh Kumar
2014/09/15 08:38:29
Done.
| |
| 25 eventSender.keyDown('downArrow'); // simulates down arrow key | |
|
Habib Virji
2014/09/10 09:31:52
ditto
Paritosh Kumar
2014/09/15 08:38:29
Done.
| |
| 26 | |
| 27 shouldBeTrue('document.getElementById("radio1").checked'); // As per change this should be true. | |
|
Habib Virji
2014/09/10 09:31:52
Ditto
Paritosh Kumar
2014/09/15 08:38:29
Done.
| |
| 28 | |
| 29 clickElement(document.getElementById('radio1')); // Allows clicking on the eleme nt | |
|
Habib Virji
2014/09/10 09:31:52
ditto
Paritosh Kumar
2014/09/15 08:38:29
Done.
| |
| 30 shouldBeTrue('document.getElementById("radio1").checked'); // Click element 1, s o should be checked. | |
|
Habib Virji
2014/09/10 09:31:52
ditto
Paritosh Kumar
2014/09/15 08:38:29
Done.
| |
| 31 eventSender.keyDown('upArrow'); // simulates down arrow key | |
|
Habib Virji
2014/09/10 09:31:52
ditto
Paritosh Kumar
2014/09/15 08:38:29
Done.
| |
| 32 | |
| 33 shouldBeTrue('document.getElementById("radio4").checked'); // As per change this should be true. | |
|
Habib Virji
2014/09/10 09:31:52
ditto
Paritosh Kumar
2014/09/15 08:38:29
Done.
| |
| 34 | |
| 35 </script> | |
| 36 | |
| 37 </body> | |
| 38 | |
| 39 | |
| OLD | NEW |