35 lines
1.0 KiB
HTML
35 lines
1.0 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<script src="../resources/js-test-pre.js"></script>
|
|
</head>
|
|
<body id="body">
|
|
|
|
<input type="text" value="hello" id="textfield">
|
|
|
|
<p id="description"></p>
|
|
<div id="console"></div>
|
|
|
|
<script>
|
|
|
|
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>
|
|
|
|
<script src="../resources/js-test-post.js"></script>
|
|
</body>
|
|
</html>
|