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

Unified Diff: LayoutTests/accessibility/aria-checkbox-checked-mixed.html

Issue 783113002: Added test to check the state of ARIA checkboxes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: tried to commit expectation file once again to have one as a new file not modified Created 6 years 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 | LayoutTests/accessibility/aria-checkbox-checked-mixed-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/accessibility/aria-checkbox-checked-mixed.html
diff --git a/LayoutTests/accessibility/aria-checkbox-checked-mixed.html b/LayoutTests/accessibility/aria-checkbox-checked-mixed.html
new file mode 100644
index 0000000000000000000000000000000000000000..3b6e60054a72563698a933201aea635d9fe4ca44
--- /dev/null
+++ b/LayoutTests/accessibility/aria-checkbox-checked-mixed.html
@@ -0,0 +1,30 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+</head>
+<body id="body">
+
+<div id="element1" role="checkbox" aria-checked="mixed"></div>
+<div id="element2" role="radio" aria-checked="mixed"></div> <!-- Treat as false for radio role -->
+<div id="element3" role="menuitemradio" aria-checked="mixed"></div> <!-- Treat as false for menuitemradio role -->
+
+<p id="description"></p>
+<div id="console"></div>
+
+<script>
+
+ description("Check whether mixed value is reported properly");
+
+ if (window.accessibilityController) {
+ for (var i = 1; i <= 3; i++) {
+ var element = accessibilityController.accessibleElementById("element" + i);
+ debug("Role: " + element.role);
+ debug("Mixed: " + element.isButtonStateMixed);
+ }
+ }
+
+</script>
+
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/accessibility/aria-checkbox-checked-mixed-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698