Index: third_party/WebKit/LayoutTests/fast/forms/radio/radio-input-keyboard-navigation.html |
diff --git a/third_party/WebKit/LayoutTests/fast/forms/radio/radio-input-keyboard-navigation.html b/third_party/WebKit/LayoutTests/fast/forms/radio/radio-input-keyboard-navigation.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..40b978615c281ae94c70c9f641239a4a1274635d |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/forms/radio/radio-input-keyboard-navigation.html |
@@ -0,0 +1,38 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<style> |
+ #test1 { |
+ max-height: 65px; |
+ overflow: auto; |
+ width: 100px; |
+ height: 65px; |
+ } |
+ input[type="radio"] { |
+ display: block; |
+ } |
+</style> |
+</head> |
+<body> |
+<div id="test1"> |
+ <input type="radio" name="foo" checked> |
+ <input type="radio" name="foo"> |
+ <input type="radio" name="foo"> |
+ <input type="radio" name="foo"> |
+ <input type="radio" name="foo"> |
+ <input type="radio" name="foo"> |
+</div> |
+<script> |
+ test(function() { |
+ document.querySelector("input").focus(); |
+ assert_exists(window, "eventSender"); |
+ for (var i = 0; i < 5; i++) { |
+ window.eventSender.keyDown("ArrowDown"); |
+ } |
+ assert_greater_than(document.getElementById("test1").scrollTop, 0); |
+ }, "Parent container should be scrolled while navigating through radio inputs"); |
+</script> |
+</body> |
+</html> |