| <p>This tests that the AutoFill button renders. It can only be tested in the test tool.</p> |
| 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"); |