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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/name-calc-img.html

Issue 1525793002: Fall back to title element text for SVG root text alternatives (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: + AXSVGRoot override Created 5 years 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 </div> 61 </div>
62 62
63 <script> 63 <script>
64 test(function(t) { 64 test(function(t) {
65 var axImg5 = accessibilityController.accessibleElementById("img5"); 65 var axImg5 = accessibilityController.accessibleElementById("img5");
66 assert_equals(axImg5.name, "img5-aria-labelledby"); 66 assert_equals(axImg5.name, "img5-aria-labelledby");
67 assert_equals(axImg5.nameFrom, "relatedElement"); 67 assert_equals(axImg5.nameFrom, "relatedElement");
68 }, "img element with title and alt"); 68 }, "img element with title and alt");
69 </script> 69 </script>
70 70
71 <div class="container">
72 <svg id="svg1">
73 <title>svg1-title</title>
74 </svg>
75 </div>
76
77 <script>
78 test(function(t) {
79 var axSvg1 = accessibilityController.accessibleElementById("svg1");
80 assert_equals(axSvg1.name, "svg1-title");
81 }, "svg element with title");
82 </script>
83
71 <script> 84 <script>
72 if (window.testRunner) 85 if (window.testRunner)
73 document.body.className = "hideAllContainers"; 86 document.body.className = "hideAllContainers";
74 </script> 87 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698