Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / non-native-image-crash.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <div role="img" aria-label="ASCII art of a helicopter" title="Incorrect text equivalent. When available, node should use aria-label instead of title.">
9      <div class="ascii">
10   ========================
11           ___][_____
12  *     __/     [___]\
13 ***====___           \
14  *        \___________]
15             I      I
16           ------------/
17 </div>
18 </div>
19
20 <p id="description"></p>
21 <div id="console"></div>
22
23 <script>
24
25     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");
26
27     if (window.accessibilityController) {
28
29           var body = document.getElementById("body");
30           body.focus();
31           var image = accessibilityController.focusedElement.childAtIndex(0);
32           var w = image.width;
33           var h = image.height;
34           
35     }
36
37 </script>
38
39 <script src="../resources/js-test-post.js"></script>
40 </body>
41 </html>