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