Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/forms/radio/radio-arrow-with-modifier-keys.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/forms/radio/radio-arrow-with-modifier-keys.html b/third_party/WebKit/LayoutTests/fast/forms/radio/radio-arrow-with-modifier-keys.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..90c3f9318f411251a3e554ce254607cb8aa71254 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/forms/radio/radio-arrow-with-modifier-keys.html |
| @@ -0,0 +1,31 @@ |
| +<!DOCTYPE html> |
| + |
| +<body> |
|
bokan
2016/05/04 12:12:13
As per layout tests style, <body> tags should be o
|
| +<script src="../resources/common.js"></script> |
| + |
| +<script src="../../../resources/js-test.js"></script> |
| + |
| +<form> |
| +<input type="radio" name="fruit" id="apple"> |
| +<input type="radio" name="fruit" id="banana"> |
| +<input type="radio" name="fruit" id="cherry"> |
| +</form> |
| + |
| +<script> |
| +description('Tests behavior of arrow with modifer keys on radio button.'); |
| + |
| +clickElement(document.getElementById('banana')); |
| +shouldBeTrue('document.getElementById("banana").checked'); |
| + |
| +eventSender.keyDown('rightArrow', ['ctrlKey']); |
| +shouldBeTrue('document.getElementById("banana").checked'); |
| + |
| +eventSender.keyDown('leftArrow', ['shiftKey']); |
| +shouldBeTrue('document.getElementById("apple").checked'); |
| + |
| +eventSender.keyDown('leftArrow', ['altKey']); |
| +shouldBeTrue('document.getElementById("apple").checked'); |
| +</script> |
| + |
| +</body> |
| +</html> |
|
bokan
2016/05/04 12:12:13
Remove </html>
|