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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/accessibility/name-calc-img.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/name-calc-img.html b/third_party/WebKit/LayoutTests/accessibility/name-calc-img.html
index d5467d158b175415a234d719cf785a87819e840a..41e23cabeb3003544cb92bf50eb6323d9b76ea39 100644
--- a/third_party/WebKit/LayoutTests/accessibility/name-calc-img.html
+++ b/third_party/WebKit/LayoutTests/accessibility/name-calc-img.html
@@ -68,6 +68,19 @@ test(function(t) {
}, "img element with title and alt");
</script>
+<div class="container">
+ <svg id="svg1">
+ <title>svg1-title</title>
+ </svg>
+</div>
+
+<script>
+test(function(t) {
+ var axSvg1 = accessibilityController.accessibleElementById("svg1");
+ assert_equals(axSvg1.name, "svg1-title");
+}, "svg element with title");
+</script>
+
<script>
if (window.testRunner)
document.body.className = "hideAllContainers";

Powered by Google App Engine
This is Rietveld 408576698