blob: 1cb873e2c6ea35148172b7bd6d7abb0b5242c81e [file] [log] [blame]
weinig@apple.come6adf602020-10-13 17:16:15 +00001<!DOCTYPE html><!-- webkit-test-runner [ AttachmentElementEnabled=true ] -->
cfleizach@apple.com2d392792016-06-01 21:27:04 +00002<html>
cfleizach@apple.com2d392792016-06-01 21:27:04 +00003<body id="body">
4
5<div id="content">
6hello
7
8<img src="resources/cake.png" alt="cake">
9<attachment id="attachment" title="title" subtitle="subtitle" action="action" progress="0.5"></attachment>
10
11world
12</div>
13
14<p id="description"></p>
15<div id="console"></div>
rniwa@webkit.orge5514492017-09-12 23:31:14 +000016<script src="../../resources/js-test-pre.js"></script>
cfleizach@apple.com2d392792016-06-01 21:27:04 +000017<script>
18
19 description("This test ensures that attributed string for range works");
20
21 if (window.accessibilityController) {
22
23 var obj = accessibilityController.accessibleElementById("content");
24 var text = obj.attributedStringForRange(0, 10);
25 debug("Attributed string: " + text);
26 }
27
28 successfullyParsed = true;
29</script>
30
31<script src="../../resources/js-test-post.js"></script>
32</body>
33</html>
34