haikuwebkit/LayoutTests/fast/forms/auto-fill-button/show-correct-auto-fill-butt...

17 lines
628 B
HTML

<!DOCTYPE html>
<html>
<body>
<p>This tests that we show the correct AutoFill button when AutoFill button type changes. It can only be tested in the test tool.</p>
<input id="credentials">
<input id="contacts">
<script>
if (window.internals) {
internals.setShowAutoFillButton(document.getElementById("credentials"), "Credentials");
internals.setShowAutoFillButton(document.getElementById("credentials"), "Contacts");
internals.setShowAutoFillButton(document.getElementById("contacts"), "Contacts");
internals.setShowAutoFillButton(document.getElementById("contacts"), "Credentials");
}
</script>
</body>
</html>