blob: aa0fb29d976bd6965bde92a36e5c1952507741cc [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/accessibility-helper.js"></script>
<script src="../resources/js-test.js"></script>
</head>
<body>
<input type="password" id="password-input">
<script>
var testOutput = "This test ensures that inserting text into a password field works.\n\n";
if (window.accessibilityController) {
testOutput += "Focusing #password-input, and then inserting text 'foo' into it.\n";
// Put focus into the password input so `insertText` has a target.
document.getElementById("password-input").focus();
var passwordInput = accessibilityController.accessibleElementById("password-input");
passwordInput.insertText("foo");
testOutput += `#password-input ${passwordInput.stringValue}`;
debug(testOutput);
}
</script>
</body>
</html>