| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <script src="../../resources/accessibility-helper.js"></script> | |
| <script src="../../resources/js-test.js"></script> | |
| </head> | |
| <body> | |
| <a id="link" href="#foo">Foo</a> | |
| <script> | |
| var output = "This test ensures we represent NSAccessibilityLinkTextAttribute in attributed strings.\n\n"; | |
| if (window.accessibilityController) { | |
| var linkText = accessibilityController.accessibleElementById("link").childAtIndex(0); | |
| var markerRange = linkText.textMarkerRangeForElement(linkText); | |
| output += expect("linkText.attributedStringForTextMarkerRangeContainsAttribute('AXLink', markerRange)", "true"); | |
| debug(output); | |
| } | |
| </script> | |
| </body> | |
| </html> | |