JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / aria-popup-buttons-on-native-elements.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../../fast/js/resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <a id="button1" tabindex="0" class="button" href="#" aria-haspopup="true" role="button">Options</a>
9 <span id="button2" class="button" tabindex="0" role="button" aria-haspopup="true">Options</span>
10
11 <button id="button3" type="button" aria-haspopup="true">Options</button>
12 <input id="button4" type="button" aria-haspopup="true" value="Options">
13
14
15 <p id="description"></p>
16 <div id="console"></div>
17
18 <script>
19     description("This tests that native style buttons with aria-haspopup appear as popup buttons.");
20     
21     if (window.accessibilityController) {
22
23         for (var k = 1; k < 5; k++) {
24
25            document.getElementById("button" + k).focus();
26            var button = accessibilityController.focusedElement;
27            shouldBe("button.role", "'AXRole: AXPopUpButton'");        
28            shouldBe("button.title", "'AXTitle: Options'");        
29
30            // Verify that the title is not duplicated as the AXValue
31            shouldBe("button.stringValue", "'AXValue: '");        
32         }
33     }
34     
35 </script>
36
37 <script src="../../../fast/js/resources/js-test-post.js"></script>
38 </body>
39 </html>