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..4978ee0e3a294254c9e29ac6b34aeead57441e80 |
--- /dev/null |
+++ b/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html |
@@ -0,0 +1,37 @@ |
+<!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> |
keishi
2014/09/24 04:32:27
Do we need this?
|
+ |
+<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"/> |
keishi
2014/09/24 04:32:27
It would be great to add tests for the complicated
|
+ |
+ |
+ |
+<script> |
+ |
+description('Tests after pressing last radio button in the list, on pressing downkey it selects back first radio button'); |
+clickElement(document.getElementById('radio4')); |
+shouldBeTrue('document.getElementById("radio4").checked'); |
+eventSender.keyDown('downArrow'); |
+ |
+shouldBeTrue('document.getElementById("radio1").checked'); |
+ |
+clickElement(document.getElementById('radio1')); |
+shouldBeTrue('document.getElementById("radio1").checked'); |
+eventSender.keyDown('upArrow'); |
+ |
+shouldBeTrue('document.getElementById("radio4").checked'); |
+ |
+</script> |
+</body> |
+ |