| <!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> | |
| <div id="target" role="group" aria-label="Group here!"> | |
| <div id="container"> | |
| </div> | |
| </div> | |
| <script> | |
| var output = "This test ensures we report or don't report the AXEmptyGroup subrole after dynamic page changes.\n\n"; | |
| if (window.accessibilityController) { | |
| window.jsTestIsAsync = true; | |
| output += expect("accessibilityController.accessibleElementById('target').subrole", "'AXSubrole: AXEmptyGroup'"); | |
| let button = document.createElement("button"); | |
| button.innerText = "Press"; | |
| document.getElementById("container").appendChild(button); | |
| setTimeout(async function() { | |
| output += await expectAsync("accessibilityController.accessibleElementById('target').subrole", "'AXSubrole: AXApplicationGroup'"); | |
| debug(output); | |
| finishJSTest(); | |
| }, 0); | |
| } | |
| </script> | |
| </body> | |
| </html> | |