| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <script src="../resources/testharness.js"></script> | 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> | 3 <script src="../resources/testharnessreport.js"></script> |
| 4 | 4 |
| 5 <!-- | 5 <!-- |
| 6 This is a test of the new (June 2016) bounds calculation code, | 6 This is a test of the new (June 2016) bounds calculation code, |
| 7 in which every node in the accessibility tree specifies its | 7 in which every node in the accessibility tree specifies its |
| 8 bounding box and optional matrix transform relative to an | 8 bounding box and optional matrix transform relative to an |
| 9 ancestor object in the tree. | 9 ancestor object in the tree. |
| 10 | 10 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 <div id="div6d">D</div> | 220 <div id="div6d">D</div> |
| 221 </div> | 221 </div> |
| 222 | 222 |
| 223 <script> | 223 <script> |
| 224 test(function(t) { | 224 test(function(t) { |
| 225 // This test uses aria-owns to rearrange children between ancestors, | 225 // This test uses aria-owns to rearrange children between ancestors, |
| 226 // to ensure that an object's offset container is not a node that's an | 226 // to ensure that an object's offset container is not a node that's an |
| 227 // ancestor in the accessibility tree but not in the layout tree. | 227 // ancestor in the accessibility tree but not in the layout tree. |
| 228 // | 228 // |
| 229 // Access both of these accessibility objects first to make sure that | 229 // Access both of these accessibility objects first to make sure that |
| 230 // the owned children are up-to-date before running assertions, | 230 // the owned children are up to date before running assertions, |
| 231 // since aria-owns is processed lazily. | 231 // since aria-owns is processed lazily. |
| 232 var axContainer6a = accessibilityController.accessibleElementById("container
6a"); | 232 var axContainer6a = accessibilityController.accessibleElementById("container
6a"); |
| 233 axContainer6a.childrenCount; | 233 axContainer6a.childrenCount; |
| 234 var axContainer6b = accessibilityController.accessibleElementById("container
6b"); | 234 var axContainer6b = accessibilityController.accessibleElementById("container
6b"); |
| 235 axContainer6b.childrenCount; | 235 axContainer6b.childrenCount; |
| 236 | 236 |
| 237 assertOffsetContainerIs("div6a", "container6a", true); | 237 assertOffsetContainerIs("div6a", "container6a", true); |
| 238 assertOffsetContainerIs("div6b", "container6a", false); | 238 assertOffsetContainerIs("div6b", "container6a", false); |
| 239 assertOffsetContainerIs("div6b", "container6b", false); | 239 assertOffsetContainerIs("div6b", "container6b", false); |
| 240 | 240 |
| 241 assertOffsetContainerIs("div6c", "container6b", true); | 241 assertOffsetContainerIs("div6c", "container6b", true); |
| 242 assertOffsetContainerIs("div6d", "container6a", false); | 242 assertOffsetContainerIs("div6d", "container6a", false); |
| 243 assertOffsetContainerIs("div6d", "container6b", false); | 243 assertOffsetContainerIs("div6d", "container6b", false); |
| 244 }, "Container must be an ancestor in both the AX tree and layout tree."); | 244 }, "Container must be an ancestor in both the AX tree and layout tree."); |
| 245 </script> | 245 </script> |
| 246 | 246 |
| 247 <script> | 247 <script> |
| 248 if (window.testRunner) | 248 if (window.testRunner) |
| 249 document.body.className = "hideAllContainers"; | 249 document.body.className = "hideAllContainers"; |
| 250 </script> | 250 </script> |
| OLD | NEW |