blob: 425c9b66005f53f9b42490d4d72d13eb95f3eb31 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
<title>Table Title</title>
</head>
<body>
<table border="1" id="table">
<caption>High Scores</caption>
<tr>
<th>Score</th>
<th>Name</th>
</tr>
<tr>
<td>9999</td>
<td>Bill</td>
</tr>
<tr>
<td>9998</td>
<td>Ted</td>
</tr>
</table>
<p id="description"></p>
<div id="console"></div>
<script>
description("This tests that table AXTitle is exposed correctly.");
if (window.accessibilityController) {
var table = accessibilityController.accessibleElementById("table");
shouldBe("table.title", "'AXTitle: High Scores'");
}
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>