| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| Websites <input id="input1" type="text" list="datalist1" /> |
| <datalist id="datalist1"> |
| <option value="https://www.apple.com/" label="Apple">Apple</option> |
| <option value="https://www.wikipedia.com/" label="Wikipedia">Wikipedia</option> |
| <input id="input2" type="search" placeholder="Fruits" list="fruits" /> |
| <option>Cantaloupe</option> |
| <option>Watermelon</option> |
| <option disabled>Foo</option> |
| description("This tests that an input field with a datalist is conveyed as listbox popup."); |
| if (window.accessibilityController) { |
| document.getElementById("input1").focus(); |
| var axInput = accessibilityController.focusedElement; |
| shouldBe("axInput.popupValue", "'listbox'"); |
| document.getElementById("input2").focus(); |
| axInput = accessibilityController.focusedElement; |
| shouldBe("axInput.popupValue", "'listbox'"); |
| <script src="../resources/js-test-post.js"></script> |