| <script src="../../resources/js-test-pre.js"></script> |
| <button id="button1">Click</button> |
| 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."); |
| <script src="../../resources/js-test-post.js"></script> |