blob: 2245cf892bbb953cd5ed0a514847e6e8ab4ad981 [file] [log] [blame]
jhoneycutt@apple.com9127a362009-12-17 05:58:00 +00001<html>
2 <head>
simon.fraser@apple.com0d5efa32015-08-04 03:00:24 +00003 <script src="../../resources/js-test-pre.js"></script>
jhoneycutt@apple.com9127a362009-12-17 05:58:00 +00004
5 <script>
rniwa@webkit.org3526ecc32012-06-12 20:37:15 +00006 if (window.testRunner)
7 testRunner.dumpAsText();
jhoneycutt@apple.com9127a362009-12-17 05:58:00 +00008 </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>