Index: LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html |
diff --git a/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html b/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f9e113b736fed7f751ff814378fd57dce3fa841b |
--- /dev/null |
+++ b/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html |
@@ -0,0 +1,39 @@ |
+<!DOCTYPE html> |
+ |
+<body> |
+<script src="../resources/common.js"></script> |
+ |
+<script src="../../../resources/js-test.js"></script> |
+ |
+<script src="../../repaint/resources/text-based-repaint.js"></script> |
+ |
+<input type="radio" value="1" name="option" id="radio1"/> |
+ |
+<input type="radio" value="2" name="option" id="radio2"/> |
+ |
+<input type="radio" value="3" name="option" id="radio3"/> |
+ |
+<input type="radio" value="4" name="option" id="radio4"/> |
+ |
+ |
+ |
+<script> |
+ |
+description('Tests after pressing last radio button in the list, on pressing downkey it selects back first radio button'); |
+clickElement(document.getElementById('radio4')); // Allows clicking on the element |
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.
|
+shouldBeTrue('document.getElementById("radio4").checked'); // Click element 4, so should be checked. |
Habib Virji
2014/09/10 09:31:52
ditto
Paritosh Kumar
2014/09/15 08:38:29
Done.
|
+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.
|
+ |
+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.
|
+ |
+clickElement(document.getElementById('radio1')); // Allows clicking on the element |
Habib Virji
2014/09/10 09:31:52
ditto
Paritosh Kumar
2014/09/15 08:38:29
Done.
|
+shouldBeTrue('document.getElementById("radio1").checked'); // Click element 1, so should be checked. |
Habib Virji
2014/09/10 09:31:52
ditto
Paritosh Kumar
2014/09/15 08:38:29
Done.
|
+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.
|
+ |
+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.
|
+ |
+</script> |
+ |
+</body> |
+ |
+ |