JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / platform / mac / accessibility / slider-allows-title-ui-element.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 <label for="slider" tabindex="0" id="title">Color:</label>
9 <input id="slider" type="range" min="0" value="0" max="6">
10
11 <p id="description"></p>
12 <div id="console"></div>
13
14 <script>
15
16     description("This tests that sliders are allowed to have title UI elements.");
17
18     if (window.accessibilityController) {
19
20         document.getElementById("slider").focus();
21         var slider = accessibilityController.focusedElement;
22
23         document.getElementById("title").focus();
24         var title = accessibilityController.rootElement.childAtIndex(0).childAtIndex(0).childAtIndex(0);
25
26         shouldBeTrue("slider.titleUIElement().isEqual(title)");
27         shouldBe("title.role", "'AXRole: AXGroup'");
28         shouldBe("title.childAtIndex(0).role", "'AXRole: AXStaticText'");
29     }
30
31 </script>
32
33 <script src="../../../fast/js/resources/js-test-post.js"></script>
34 </body>
35 </html>