| <!DOCTYPE HTML> |
| <html> |
| <head> |
| <script src="../../resources/js-test-pre.js"></script> |
| </head> |
| <body> |
| |
| <button id="button1">Click</button> |
| |
| <p id="description"></p> |
| <div id="console"></div> |
| |
| <script> |
| description("This tests the primary screen height is exposed to AX API from web process."); |
| if (window.accessibilityController) { |
| window.jsTestIsAsync = true; |
| |
| var rootElement = accessibilityController.rootElement; |
| var webArea = accessibilityController.rootElement.childAtIndex(0); |
| |
| rootElement.attributeValueAsync("_AXPrimaryScreenHeight", function(value) { |
| debug(value > 0 ? "The screen height from the root element is > 0." |
| : "The screen height from the root element should be > 0 but it is not."); |
| }); |
| |
| webArea.attributeValueAsync("_AXPrimaryScreenHeight", function(value) { |
| debug(value > 0 ? "The screen height from the web area is > 0." |
| : "The screen height from the web area should be > 0 but it is not."); |
| |
| finishJSTest(); |
| }); |
| } |
| </script> |
| <script src="../../resources/js-test-post.js"></script> |
| </body> |
| </html> |