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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/html-option-aria-checked.html

Issue 2694903010: AX checked state changes (Closed)
Patch Set: Remove whitespace change Created 3 years, 10 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/accessibility/html-option-aria-checked.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/html-option-aria-checked.html b/third_party/WebKit/LayoutTests/accessibility/html-option-aria-checked.html
new file mode 100644
index 0000000000000000000000000000000000000000..3eaed53d6a30e20ca54a5fb65067d5c346af386a
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/accessibility/html-option-aria-checked.html
@@ -0,0 +1,40 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body id="body">
+
+<select>
+<option id="element1" role="menuitemcheckbox">1</option>
+<option id="element2" role="menuitemcheckbox" aria-checked="true">2</option>
+<option id="element3" role="menuitemradio">3</option>
+<option id="element4" role="menuitemradio" aria-checked="true">4</option>
+<!-- Checked not supported -->
+<option id="element5" aria-checked="true">5</option>
+<!-- Mixed is not checked -->
+<option id="element6" role="menuitemcheckbox" aria-checked="mixed">6</option>
+</select>
+
+
+</select>
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+
+ description("Check whether options with appropriate role can set aria-checked");
+
+ if (window.accessibilityController) {
+ for (var i = 1; i <= 6; i++) {
+ var element = accessibilityController.accessibleElementById("element" + i);
+ debug("Role: " + element.role);
+ debug("Checked: " + element.isChecked);
+ }
+ }
+
+</script>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698