OLD | NEW |
---|---|
1 <html> | 1 <html> |
2 <script> | 2 <script> |
3 if (window.testRunner) | 3 if (window.testRunner) |
4 testRunner.dumpAsText(); | 4 testRunner.dumpAsText(); |
5 </script> | 5 </script> |
6 <body> | 6 <body> |
7 <div id="link" role="link" tabindex="0">Click</div> | 7 <div id="link" role="link" tabindex="0">Click</div> |
8 | 8 |
9 <br> | 9 <br> |
10 | 10 |
11 <span id="result">To run this test outside of DRT, use the Accssibility Inspecto r to inspect the link above, and make sure AXPressed is listed as a supported ac tion.</span> | 11 <span id="result">To run this test outside of DRT, use the Accessibility Inspect or to inspect the link above, and make sure AXPressed is listed as a supported a ction.</span> |
Mike West
2014/11/03 04:54:41
If this test has an -expected.txt result, you'll n
Sungmann Cho
2014/11/03 05:08:22
As you mentioned, there is a result text file of t
| |
12 | 12 |
13 <script> | 13 <script> |
14 if (window.accessibilityController) { | 14 if (window.accessibilityController) { |
15 var link = document.getElementById("link"); | 15 var link = document.getElementById("link"); |
16 var result = document.getElementById("result"); | 16 var result = document.getElementById("result"); |
17 | 17 |
18 link.focus(); | 18 link.focus(); |
19 var supportsAction = accessibilityController.focusedElement.isPressActio nSupported(); | 19 var supportsAction = accessibilityController.focusedElement.isPressActio nSupported(); |
20 if (supportsAction) | 20 if (supportsAction) |
21 result.innerHTML = "SUCCESS! This test passes because the ARIA link above supports the press action."; | 21 result.innerHTML = "SUCCESS! This test passes because the ARIA link above supports the press action."; |
22 else | 22 else |
23 result.innerHTML = "FAIL! This test fails because the ARIA link abov e does NOT support the press action, but it should."; | 23 result.innerHTML = "FAIL! This test fails because the ARIA link abov e does NOT support the press action, but it should."; |
24 } | 24 } |
25 </script> | 25 </script> |
26 | 26 |
27 </body> | 27 </body> |
28 </html> | 28 </html> |
OLD | NEW |