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

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, 8 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
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>

Powered by Google App Engine
This is Rietveld 408576698