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