98cbe3562084d8036a55fb0c256e45bdcde1ffec
[WebKit-https.git] / LayoutTests / accessibility / ios-simulator / attributed-string-for-range.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5 var successfullyParsed = false;
6 </script>
7 <script>
8     if (window.internals)
9         window.internals.settings.setAttachmentElementEnabled(true)
10 </script>
11 <script src="../../resources/js-test-pre.js"></script>
12 </head>
13 <body id="body">
14
15 <div id="content">
16 hello 
17
18 <img src="resources/cake.png" alt="cake"> 
19 <attachment id="attachment" title="title" subtitle="subtitle" action="action" progress="0.5"></attachment>
20
21 world
22 </div>
23
24 <p id="description"></p>
25 <div id="console"></div>
26
27 <script>
28
29     description("This test ensures that attributed string for range works");
30
31     if (window.accessibilityController) {
32
33         var obj = accessibilityController.accessibleElementById("content");
34         var text = obj.attributedStringForRange(0, 10);
35         debug("Attributed string: " + text);
36     }
37
38     successfullyParsed = true;
39 </script>
40
41 <script src="../../resources/js-test-post.js"></script>
42 </body>
43 </html>
44