Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1147)

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/radio/radio-input-keyboard-navigation.html

Issue 2620843004: Radio input keyboard navigation scroll (Closed)
Patch Set: This patch scrolls the parent container while navigating through the radio input using keyboard Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/RadioInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/forms/RadioInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698