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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/input-image-alt.html

Issue 1417213006: Switch all LayoutTests to use new AX name calculation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix canvas-fallback-content-labels-expected.txt Created 5 years, 1 month 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 <html> 1 <html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body id="body"> 6 <body id="body">
7 7
8 <input type="image" alt="Submit" src="resources/cake.png" width=100 height=1 00 id="image1"> 8 <input type="image" alt="Submit" src="resources/cake.png" width=100 height=1 00 id="image1">
9 9
10 <p id="description"></p> 10 <p id="description"></p>
11 <div id="console"></div> 11 <div id="console"></div>
12 12
13 <script> 13 <script>
14 if (window.accessibilityController) { 14 if (window.accessibilityController) {
15 description("This test makes sure that an input image returns its al t tag as the description"); 15 description("This test makes sure that an input image returns its al t tag as the description");
16 16
17 var image1 = document.getElementById("image1").focus(); 17 var image1 = document.getElementById("image1").focus();
18 var img = accessibilityController.focusedElement; 18 var img = accessibilityController.focusedElement;
19 19
20 shouldBe("img.deprecatedDescription", "'AXDescription: Submit'"); 20 shouldBe("img.name", "'Submit'");
21 } 21 }
22 </script> 22 </script>
23 23
24 24
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698