[Web GPU] GPURenderPassEncoder updates: setBlendColor, setViewport, setScissorRect
[WebKit-https.git] / LayoutTests / accessibility / aria-toggle-button-with-title.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script>
6
7 function runTest()
8 {
9   if (window.accessibilityController) {
10
11     document.getElementById("tbutton").focus();
12     tbutton1 = accessibilityController.focusedElement;
13     debug("Role: " + tbutton1.role);
14     shouldBe("tbutton1.title", "'AXTitle: Toggle button'");
15
16     document.getElementById("button").focus();
17     button = accessibilityController.focusedElement;
18     debug("Role: " + button.role);
19     shouldBe("button.title", "'AXTitle: Button title'");
20   }
21 }
22 </script>
23
24 </head>
25 <body id="body" onload="runTest()">
26
27 <a id="tbutton" tabindex="0" class="button" role="button" aria-pressed="true">Toggle button</a>
28
29 <div>
30 <button type="button" id="button" role="button"/>
31 <label>Button title</label>
32 </div>
33
34 <p id="description"></p>
35 <div id="console"></div>
36
37 <script>
38 description("This tests that a toggle button properly exposes the title when there isn't a direct relation and textUnderElement is required to be used.");
39
40 </script>
41 <script src="../resources/js-test-post.js"></script>
42 </body>
43 </html>