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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/radio/radio-arrow-with-modifier-keys.html

Issue 1944923002: Fix for Alt+Left/Right page navigation with focus on radio buttons. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/LayoutTests/fast/forms/radio/radio-arrow-with-modifier-keys-expected.txt » ('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-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..702f290b8f4a4bb285851f1baf4cfa171f2be115
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/forms/radio/radio-arrow-with-modifier-keys.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+
+<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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/radio/radio-arrow-with-modifier-keys-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698