blob: 0479eaaf8cbac04423c7a93ab656cf76f52b8e3e [file]
<!DOCTYPE HTML>
<html>
<head>
<script src="../../resources/accessibility-helper.js"></script>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<abbr role="group" id="abbr" title="a">Foo</abbr>
<acronym role="group" id="acronym" title="b">Bar</acronym>
<script>
var output = "This test ensures we represent expanded text in attributed strings.\n\n";
if (window.accessibilityController) {
var abbrText = accessibilityController.accessibleElementById("abbr").childAtIndex(0);
var markerRange = abbrText.textMarkerRangeForElement(abbrText);
output += expect("abbrText.attributedStringForTextMarkerRangeContainsAttribute('AXExpandedTextValue', markerRange)", "true");
var acronymText = accessibilityController.accessibleElementById("acronym").childAtIndex(0);
var markerRange = acronymText.textMarkerRangeForElement(acronymText);
output += expect("acronymText.attributedStringForTextMarkerRangeContainsAttribute('AXExpandedTextValue', markerRange)", "true");
debug(output);
}
</script>
</body>
</html>