REGRESSION(r184899): Crash when focusing an input element styled with a web font
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / webarea-size-equals-content-size.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 <img src="resources/cake.png" width=1000 height=1000><br>
9 text
10
11 <img src="resources/cake.png" width=1000 height=1000><br>
12 text
13
14 <img src="resources/cake.png" width=1000 height=1000><br>
15 text
16
17 <img src="resources/cake.png" width=1000 height=1000><br>
18 text
19
20 <img src="resources/cake.png" width=1000 height=1000><br>
21 text
22
23 <img src="resources/cake.png" width=1000 height=1000><br>
24 text
25
26 <img src="resources/cake.png" width=1000 height=1000><br>
27 text
28
29 <img src="resources/cake.png" width=1000 height=1000><br>
30 text
31
32 <p id="description"></p>
33 <div id="console"></div>
34
35 <script>
36
37     description("This tests that an ARIA menu bar is exposed as a menu bar.");
38
39     if (window.accessibilityController) {
40
41         document.getElementById("body").focus();
42         shouldBe("accessibilityController.focusedElement.role", "'AXRole: AXWebArea'");
43         shouldBe("accessibilityController.focusedElement.parentElement().role", "'AXRole: AXScrollArea'");
44
45         var webAreaHeight = accessibilityController.focusedElement.height;
46         var webAreaWidth = accessibilityController.focusedElement.width;
47
48         var scrollHeight = accessibilityController.focusedElement.parentElement().height;
49         var scrollWidth = accessibilityController.focusedElement.parentElement().width;
50
51         shouldBeTrue("webAreaWidth > scrollWidth");
52         shouldBeTrue("webAreaHeight > scrollHeight");
53     }
54
55 </script>
56
57 <script src="../../../resources/js-test-post.js"></script>
58 </body>
59 </html>