blob: 8c37e58f1a9d1291384b0ff0e48d3a30fbc54232 [file] [log] [blame]
<p>This tests that the AutoFill button renders. It can only be tested in the test tool.</p>
<div id="container">
<input type="text">
<input type="password">
</div>
<script>
if (window.internals) {
var inputs = document.querySelectorAll("input");
for (var i = 0; i < inputs.length; ++i)
window.internals.setShowAutoFillButton(inputs[i], "Credentials");
var dynamicInput = document.createElement("input");
window.internals.setShowAutoFillButton(dynamicInput, "Credentials");
document.querySelector("#container").appendChild(dynamicInput);
var dynamicInput2 = document.createElement("input");
window.internals.setShowAutoFillButton(dynamicInput2, "Credentials");
document.querySelector("#container").appendChild(dynamicInput2);
dynamicInput2.setAttribute("type", "password");
}
</script>