jhoneycutt@apple.com | 9127a36 | 2009-12-17 05:58:00 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
simon.fraser@apple.com | 0d5efa3 | 2015-08-04 03:00:24 +0000 | [diff] [blame] | 3 | <script src="../../resources/js-test-pre.js"></script> |
jhoneycutt@apple.com | 9127a36 | 2009-12-17 05:58:00 +0000 | [diff] [blame] | 4 | |
| 5 | <script> |
rniwa@webkit.org | 3526ecc3 | 2012-06-12 20:37:15 +0000 | [diff] [blame] | 6 | if (window.testRunner) |
| 7 | testRunner.dumpAsText(); |
jhoneycutt@apple.com | 9127a36 | 2009-12-17 05:58:00 +0000 | [diff] [blame] | 8 | </script> |
| 9 | </head> |
| 10 | <body id="body"> |
| 11 | <p> |
| 12 | This test verifies that, on Windows, text nodes return "editable |
| 13 | text" for their role value. |
| 14 | <br><br> |
| 15 | <a id="link" href="https://bugs.webkit.org/show_bug.cgi?id=32631">Bug 32631 - |
| 16 | MSAA: Accessibility role of text nodes is wrong</a> |
| 17 | </p> |
| 18 | |
| 19 | <p id="console"></p> |
| 20 | |
| 21 | <script> |
| 22 | if (window.accessibilityController) { |
| 23 | document.getElementById("link").focus(); |
| 24 | |
| 25 | var e = accessibilityController.focusedElement.childAtIndex(0); |
| 26 | shouldBe('e.role', '"editable text"'); |
| 27 | } |
| 28 | </script> |
| 29 | </body> |
| 30 | </html> |