| 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 <style> | 5 <style> |
| 6 .hideAllContainers .container { | 6 .hideAllContainers .container { |
| 7 display: none; | 7 display: none; |
| 8 } | 8 } |
| 9 </style> | 9 </style> |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 <div class="container" id="container2"> | 23 <div class="container" id="container2"> |
| 24 <img id="img2" src="missing-image.png" alt="Missing" role="presentation"> | 24 <img id="img2" src="missing-image.png" alt="Missing" role="presentation"> |
| 25 </div> | 25 </div> |
| 26 | 26 |
| 27 <script> | 27 <script> |
| 28 test(function(t) { | 28 test(function(t) { |
| 29 var axImg2 = accessibilityController.accessibleElementById("img2"); | 29 var axImg2 = accessibilityController.accessibleElementById("img2"); |
| 30 assert_equals(axImg2, undefined); | 30 assert_equals(axImg2, undefined); |
| 31 var axContainer2 = accessibilityController.accessibleElementById("container2
"); | 31 var axContainer2 = accessibilityController.accessibleElementById("container2
"); |
| 32 assert_equals(axContainer2.role, "AXRole: AXDiv"); | 32 assert_equals(axContainer2.role, "AXRole: AXGenericContainer"); |
| 33 assert_equals(axContainer2.childrenCount, 0); | 33 assert_equals(axContainer2.childrenCount, 0); |
| 34 }, "A presentational image is missing from the accessibility tree entirely."); | 34 }, "A presentational image is missing from the accessibility tree entirely."); |
| 35 </script> | 35 </script> |
| 36 | 36 |
| 37 <script> | 37 <script> |
| 38 if (window.testRunner) | 38 if (window.testRunner) |
| 39 document.body.className = "hideAllContainers"; | 39 document.body.className = "hideAllContainers"; |
| 40 </script> | 40 </script> |
| OLD | NEW |