cfleizach@apple.com | bbfb860 | 2009-06-27 00:07:11 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 | <html> |
| 3 | <head> |
mark.lam@apple.com | a931ab2 | 2013-09-08 01:18:24 +0000 | [diff] [blame] | 4 | <script src="../resources/js-test-pre.js"></script> |
cfleizach@apple.com | bbfb860 | 2009-06-27 00:07:11 +0000 | [diff] [blame] | 5 | </head> |
| 6 | <body id="body"> |
| 7 | <input type="text" aria-disabled="true" size=20> |
| 8 | <input type="text" aria-disabled="false" size=20> |
| 9 | <p id="description"></p> |
| 10 | <div id="console"></div> |
| 11 | |
| 12 | <script> |
| 13 | |
| 14 | description("This tests that the aria-disabled attribute works. The text field should not be enabled."); |
| 15 | |
| 16 | if (window.accessibilityController) { |
| 17 | |
| 18 | var body = document.getElementById("body"); |
| 19 | body.focus(); |
| 20 | var textField = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(0); |
| 21 | var succeeded = textField.isEnabled; |
| 22 | shouldBe("succeeded", "false"); |
| 23 | |
| 24 | textField = accessibilityController.focusedElement.childAtIndex(0).childAtIndex(1); |
| 25 | succeeded = textField.isEnabled; |
| 26 | shouldBe("succeeded", "true"); |
| 27 | } |
| 28 | |
cfleizach@apple.com | bbfb860 | 2009-06-27 00:07:11 +0000 | [diff] [blame] | 29 | </script> |
| 30 | |
mark.lam@apple.com | a931ab2 | 2013-09-08 01:18:24 +0000 | [diff] [blame] | 31 | <script src="../resources/js-test-post.js"></script> |
cfleizach@apple.com | bbfb860 | 2009-06-27 00:07:11 +0000 | [diff] [blame] | 32 | </body> |
| 33 | </html> |