[Web GPU] GPURenderPassEncoder updates: setBlendColor, setViewport, setScissorRect
[WebKit-https.git] / LayoutTests / accessibility / button-with-aria-haspopup-role.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7 <div id="content">
8   <div id="test1" role="button">X</div>
9   <div id="test2" role="button" aria-haspopup="true">X</div>
10   <div id="test3" role="button" aria-haspopup="false">X</div>
11   <div id="test4" role="button" aria-haspopup="dialog">X</div>
12   <div id="test5" role="button" aria-haspopup="grid">X</div>
13   <div id="test6" role="button" aria-haspopup="listbox">X</div>
14   <div id="test7" role="button" aria-haspopup="menu">X</div>
15   <div id="test8" role="button" aria-haspopup="tree">X</div>
16   <div id="test9" role="button" aria-haspopup="foo">X</div>
17   <div id="test10" role="button" aria-haspopup="">X</div>
18 </div>
19 <p id="description"></p>
20 <div id="console"></div>
21 <script>
22     description("This tests the platform role exposed for buttons with aria-haspopup");
23     if (window.accessibilityController) {
24         for (var i = 1; i <= 10; i++) {
25             var element = document.getElementById("test" + i)
26             var popup = element.hasAttribute("aria-haspopup") ? "'" + element.getAttribute("aria-haspopup") + "'" : "(null)";
27             var axElement = accessibilityController.accessibleElementById("test" + i);
28             debug("test" + i + " " + axElement.role + " for aria-haspopup=" + popup)
29         }
30
31         document.getElementById("content").style.visibility = "hidden";
32     }
33 </script>
34 <script src="../resources/js-test-post.js"></script>
35 </body>
36 </html>
37