| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <input type="text" value="hello" id="textfield"> |
| description("This tests that the auto-filled attribute is reported correctly."); |
| if (window.accessibilityController) { |
| var textField = document.getElementById("textfield"); |
| var axTextField = accessibilityController.accessibleElementById("textfield"); |
| debug("Initial auto-fill value: " + axTextField.boolAttributeValue("AXValueAutofilled")); |
| window.internals.setAutofilled(textField, true); |
| debug("Set auto-fill to true value: " + axTextField.boolAttributeValue("AXValueAutofilled")); |
| window.internals.setAutofilled(textField, false); |
| debug("Set auto-fill to false value: " + axTextField.boolAttributeValue("AXValueAutofilled")); |
| <script src="../resources/js-test-post.js"></script> |