blob: 2245cf892bbb953cd5ed0a514847e6e8ab4ad981 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
</script>
</head>
<body id="body">
<p>
This test verifies that, on Windows, text nodes return "editable
text" for their role value.
<br><br>
<a id="link" href="https://bugs.webkit.org/show_bug.cgi?id=32631">Bug 32631 -
MSAA: Accessibility role of text nodes is wrong</a>
</p>
<p id="console"></p>
<script>
if (window.accessibilityController) {
document.getElementById("link").focus();
var e = accessibilityController.focusedElement.childAtIndex(0);
shouldBe('e.role', '"editable text"');
}
</script>
</body>
</html>