96b6ea3de499cf9fc09a8df379af4a18fe11265e
[WebKit-https.git] / LayoutTests / accessibility / non-native-image-crash.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script>
5 var successfullyParsed = false;
6 </script>
7 <script src="../fast/js/resources/js-test-pre.js"></script>
8 </head>
9 <body id="body">
10
11 <div role="img" aria-label="ASCII art of a helicopter" title="Incorrect text equivalent. When available, node should use aria-label instead of title.">
12      <div class="ascii">
13   ========================
14           ___][_____
15  *     __/     [___]\
16 ***====___           \
17  *        \___________]
18             I      I
19           ------------/
20 </div>
21 </div>
22
23 <p id="description"></p>
24 <div id="console"></div>
25
26 <script>
27
28     description("This tests that a non native image (one created through ARIA) does not cause an assert. Test passes if it does not crash in debug builds");
29
30     if (window.accessibilityController) {
31
32           var body = document.getElementById("body");
33           body.focus();
34           var image = accessibilityController.focusedElement.childAtIndex(0);
35           var w = image.width;
36           var h = image.height;
37           
38     }
39
40     successfullyParsed = true;
41 </script>
42
43 <script src="../fast/js/resources/js-test-post.js"></script>
44 </body>
45 </html>