OLD | NEW |
1 <script src="../resources/js-test.js"></script> | 1 <script src="../resources/js-test.js"></script> |
2 <script src="../resources/accessibility-helper.js"></script> | 2 <script src="../resources/accessibility-helper.js"></script> |
3 <div>These lists have a static text role because they have a presentation role.<
/div> | 3 <div>These lists have a static text role because they have a presentation role.<
/div> |
4 <ul role="presentation"> | 4 <ul role="presentation"> |
5 <li>Presentation Item 1</li> | 5 <li>Presentation Item 1</li> |
6 <li>Presentation Item 2</li> | 6 <li>Presentation Item 2</li> |
7 </ul> | 7 </ul> |
8 | 8 |
9 <div>The first list item has a listitem role even if ul has a presentation role
because it has an explicit role.</div> | 9 <div>The first list item has a listitem role even if ul has a presentation role
because it has an explicit role.</div> |
10 <ul role="presentation"> | 10 <ul role="presentation"> |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 </div> | 71 </div> |
72 | 72 |
73 <p>End of test</p> | 73 <p>End of test</p> |
74 <p id="description"></p> | 74 <p id="description"></p> |
75 <div id="console"></div> | 75 <div id="console"></div> |
76 <script> | 76 <script> |
77 description("This test make sure that presentation role is inherited to required
owned elements."); | 77 description("This test make sure that presentation role is inherited to required
owned elements."); |
78 | 78 |
79 if (window.testRunner) | 79 if (window.testRunner) |
80 testRunner.dumpAsText(); | 80 testRunner.dumpAsText(); |
| 81 |
81 if (window.accessibilityController) { | 82 if (window.accessibilityController) { |
| 83 // Ensure we've seen all nodes in accessibility tree. |
| 84 traverseAccessibilityTree(accessibilityController.rootElement); |
82 buildAccessibilityTree(accessibilityController.focusedElement, 0, 1); | 85 buildAccessibilityTree(accessibilityController.focusedElement, 0, 1); |
83 } | 86 } |
84 </script> | 87 </script> |
OLD | NEW |