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

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

Issue 799533003: Update some logic to check mixed state of ARIA elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed expectation diff. 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..9ebcaf5ebdc3e7b34ee042b26c333e42e10b9879
--- /dev/null
+++ b/LayoutTests/accessibility/aria-checkbox-checked-mixed.html
@@ -0,0 +1,31 @@
+<!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="menuitemcheckbox" aria-checked="mixed"></div>
+<div id="element3" role="radio" aria-checked="mixed"></div> <!-- Treat as false for radio role -->
+<div id="element4" 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 <= 4; 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