Chromium Code Reviews| 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..f53dde4a9866ff48edd91230ccfd968512733a00 |
| --- /dev/null |
| +++ b/LayoutTests/fast/forms/radio/radio-checked-LastorFirst-then-DownorUp-keyDown.html |
| @@ -0,0 +1,47 @@ |
| +<!DOCTYPE html> |
| + |
| +<body> |
| +<script src="../resources/common.js"></script> |
| + |
| +<script src="../../../resources/js-test.js"></script> |
| + |
| +<input type=radio name=foo id="radio1"> |
| +<input type=radio name=bar id="radio2"> |
| +<div><input type=radio name=foo id="radio3"></div> |
| + |
| +<form name=alpha> |
| +<input type=radio name=foo id="radio3"> |
| +<input type=radio name=foo id="radio4"> |
| +</form> |
| + |
| +<form name=beta> |
| +<input type=radio name=foo id="radio5"> |
| +</form> |
| + |
| +<script> |
|
keishi
2014/09/26 04:25:35
Please incorporate the test cases from
http://jsbi
|
| +document.alpha.appendChild(document.beta); |
| +description('Tests after pressing last radio button in the list, on pressing downkey it selects back first radio button'); |
| +clickElement(document.getElementById('radio1')); |
| +shouldBeTrue('document.getElementById("radio1").checked'); |
| +eventSender.keyDown('downArrow'); |
| +shouldBeTrue('document.getElementById("radio3").checked'); |
| + |
| +eventSender.keyDown('downArrow'); |
| +shouldBeTrue('document.getElementById("radio1").checked'); |
| + |
| +eventSender.keyDown('upArrow'); |
| +shouldBeTrue('document.getElementById("radio3").checked'); |
| + |
| + |
| +clickElement(document.getElementById('radio4')); |
| +shouldBeTrue('document.getElementById("radio4").checked'); |
| +eventSender.keyDown('downArrow'); |
| + |
| +shouldBeTrue('document.getElementById("radio3").checked'); |
| +eventSender.keyDown('upArrow'); |
| + |
| +shouldBeTrue('document.getElementById("radio4").checked'); |
| + |
| +</script> |
| +</body> |
| + |