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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/presentational-leaf.html

Issue 2867073003: Name calculation should not include nameFrom:author descendants. (Closed)
Patch Set: Single quote Created 3 years, 7 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 <!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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698