blob: 6a0cf91e17bce78b1af20b4c5a6d2a26aebbaf8a [file] [log] [blame]
<html>
<script src="../resources/js-test.js"></script>
<body id="body">
<div id="content">
<table border=1 role="button" id='table1'>
<tr><td>test</td><td>test</td><td>test</td></tr>
<tr><td>test</td><td>test</td><td>test</td></tr>
</table>
<table border=1 role="group" id='table2'>
<tr><td>test</td><td>test</td><td>test</td></tr>
<tr><td>test</td><td>test</td><td>test</td></tr>
</table>
</div>
<div id="result"></div>
<script>
if (window.accessibilityController) {
debug("Table1 should not have a table role because it's a button: " + accessibilityController.accessibleElementById('table1').role);
debug("Table2 should not have a table role because it's a group: " + accessibilityController.accessibleElementById('table2').role);
document.getElementById("content").style.display = "none";
}
</script>
</body>
</html>