weinig@apple.com | e6adf60 | 2020-10-13 17:16:15 +0000 | [diff] [blame] | 1 | <!DOCTYPE html><!-- webkit-test-runner [ AttachmentElementEnabled=true ] --> |
cfleizach@apple.com | 2d39279 | 2016-06-01 21:27:04 +0000 | [diff] [blame] | 2 | <html> |
cfleizach@apple.com | 2d39279 | 2016-06-01 21:27:04 +0000 | [diff] [blame] | 3 | <body id="body"> |
| 4 | |
| 5 | <div id="content"> |
| 6 | hello |
| 7 | |
| 8 | <img src="resources/cake.png" alt="cake"> |
| 9 | <attachment id="attachment" title="title" subtitle="subtitle" action="action" progress="0.5"></attachment> |
| 10 | |
| 11 | world |
| 12 | </div> |
| 13 | |
| 14 | <p id="description"></p> |
| 15 | <div id="console"></div> |
rniwa@webkit.org | e551449 | 2017-09-12 23:31:14 +0000 | [diff] [blame] | 16 | <script src="../../resources/js-test-pre.js"></script> |
cfleizach@apple.com | 2d39279 | 2016-06-01 21:27:04 +0000 | [diff] [blame] | 17 | <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 | |