blob: 4258b17a2087eab4c322d17330a3c1b61d702dd0 [file] [log] [blame]
<!DOCTYPE html>
<html>
<body id="body">
<code id="code">
code
</code>
<p id="description"></p>
<div id="console"></div>
<script src="../../resources/js-test-pre.js"></script>
<script>
description("This test ensures that ios simulator exposes textual context attributes for elements correctly.");
if (window.accessibilityController) {
var obj = accessibilityController.accessibleElementById("code");
debug("context value: " + obj.stringAttributeValue("AXTextualContext"));
var text = obj.attributedStringForElement();
debug("Attributed string: " + text);
}
successfullyParsed = true;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>