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

Side by Side Diff: third_party/WebKit/LayoutTests/accessibility/computed-text-with-height-0.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 <!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
11 <div class="container"> 11 <div class="container">
12 <a id="button" href="#" role="button"><span style="height:0px;position:absol ute;overflow:hidden">Friend Requests:</span><span>0</span></a> 12 <a id="button" href="#" role="button"><span style="height:0px;position:absol ute;overflow:hidden">Friend Requests:</span><span>0</span></a>
13 </div> 13 </div>
14 14
15 <script> 15 <script>
16 test(function(t){ 16 test(function(t){
17 var axButton = accessibilityController.accessibleElementById("button"); 17 var axButton = accessibilityController.accessibleElementById("button");
18 assert_equals(axButton.deprecatedTitle, "AXTitle: Friend Requests: 0"); 18 assert_equals(axButton.name, "Friend Requests: 0");
19 assert_equals(axButton.name, "Friend Requests: 0"); 19 assert_equals(axButton.name, "Friend Requests: 0");
20 }, "Text with height:0, position:absolute, and overflow:hidden should still be i ncluded in the accessible text computation."); 20 }, "Text with height:0, position:absolute, and overflow:hidden should still be i ncluded in the accessible text computation.");
21 </script> 21 </script>
22 22
23 <script> 23 <script>
24 if (window.testRunner) 24 if (window.testRunner)
25 document.body.className = "hideAllContainers"; 25 document.body.className = "hideAllContainers";
26 </script> 26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698