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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/name-calc-svg.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
(Empty)
1 <!DOCTYPE HTML>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4
5 <style>
6 .hideAllContainers .container {
7 display: none;
8 }
9 </style>
10
11 <div class="container">
12 <img id="img1" src="resources/cake.png">
13 </div>
14
15 <div class="container">
16 <svg id="svg1">
17 <title>svg1-title</title>
18 </svg>
19 </div>
20
21 <script>
22 test(function(t) {
23 var axSvg1 = accessibilityController.accessibleElementById("svg1");
24 var axImg1 = accessibilityController.accessibleElementById("img1");
25 assert_equals(axSvg1.name, "svg1-title");
26 assert_equals(axSvg1.nameFrom, "title");
27 }, "SVG element with title element");
28 </script>
29
30 <script>
31 if (window.testRunner)
32 document.body.className = "hideAllContainers";
33 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698