| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <html> |
| <head> |
| <script src="../resources/js-test-pre.js"></script> |
| </head> |
| <body id="body"> |
| <select id="select" multiple="multiple"> |
| <option>Option 1</option> |
| <option>Option 2</option> |
| <option>Option 3</option> |
| </select> |
| <p id="description"></p> |
| <div id="console"></div> |
| <script> |
| description("Tests that native listboxes with no selected children report no selected children."); |
| if (window.accessibilityController) { |
| var listbox = accessibilityController.accessibleElementById("select"); |
| shouldBe("listbox.selectedChildrenCount", "0"); |
| shouldBeTrue("listbox.selectedChildAtIndex(1) == null"); |
| } |
| |
| </script> |
| |
| <script src="../resources/js-test-post.js"></script> |
| </body> |
| </html> |