blob: a4213804aa90433fca2a57a37347f0f8f559d3d3 [file]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../resources/accessibility-helper.js"></script>
<script src="../resources/js-test.js"></script>
</head>
<body>
<button id="button" aria-braillelabel="***">
Three stars
</button>
<script>
var output = "This test ensures aria-braillelabel works.\n\n";
if (window.accessibilityController) {
window.jsTestIsAsync = true;
output += expect("accessibilityController.accessibleElementById('button').brailleLabel", "'AXBrailleLabel: ***'");
setTimeout(async function() {
// Before making the DOM change, wait out any children-changed notifications caused by the page finishing its load.
// Without this, we pass the test despite the implementation being wrong.
await sleep(1);
document.getElementById("button").ariaBrailleLabel = "*";
output += await expectAsync("accessibilityController.accessibleElementById('button').brailleLabel", "'AXBrailleLabel: *'");
debug(output);
finishJSTest();
}, 0);
}
</script>
</body>
</html>