blob: d9b60c4432d5b3d18f17a97feb30ba21f03063f6 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/ui-helper.js"></script>
</head>
<body>
<button id="test">Button</button> <!-- Test PASSED if there is a focus ring -->
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
let testElement = document.getElementById("test");
testElement.addEventListener("focus", () => testRunner.notifyDone(), { once: true });
UIHelper.keyDown("\t", ["altKey"]);
}
</script>
</body>
</html>