blob: 26fc45c18d6777ad72d05209619169fd4ef5393e [file] [log] [blame]
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
button {
padding: 30px;
<button id="cake">Button with image of <img alt="cake" src="resources/cake.png" width="40px"></button>
test((t) => {
var button = document.getElementById('cake');
assert_equals(document.activeElement == button, true);
window.axButton = accessibilityController.focusedElement;
assert_equals('Button with image of cake') >= 0, true);
}, "This test makes sure that a generic focusable div can get accessibility focus and gets its accessible text from contents..");