OLD | NEW |
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> |
OLD | NEW |