Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/presentation-owned-elements.html

Issue 2957733002: Only call TextChanged on existing AXObjects. This avoids triggering the code which calls UpdateDist… (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698