97dddb7c75d6c40ae02ee606ca57a3f408b713f4
[WebKit-https.git] / LayoutTests / platform / ios-simulator / accessibility / out-of-bounds-child-access.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../resources/js-test-pre.js"></script>
5 <script>
6 var successfullyParsed = false;
7 </script>
8 </head>
9 <body id="body">
10
11 <div id="group" role="group"><button>test</button></div>
12
13 <p id="description"></p>
14 <div id="console"></div>
15
16 <script>
17
18     description("This makes sure if out of bounds ranges come into accessibilityElementAtIndex: then we don't crash.");
19
20     if (window.accessibilityController) {
21
22         var group = accessibilityController.accessibleElementById("group");
23
24         // Don't crash!
25         group.childAtIndex(9223372036854775806);
26     }
27
28     successfullyParsed = true;
29 </script>
30
31 <script src="../../../resources/js-test-post.js"></script>
32 </body>
33 </html>
34