MediaPlayerPrivateAVFoundationObjC's "periodic time observer" is unnecessary
[WebKit-https.git] / LayoutTests / accessibility / aria-combobox.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <link rel="stylesheet" href="../fast/js/resources/js-test-style.css">
5 <script>
6 var successfullyParsed = false;
7 </script>
8 <script src="../fast/js/resources/js-test-pre.js"></script>
9 </head>
10 <body id="body">
11
12 <div id="combo" tabindex=0 role="combobox" aria-expanded="false" aria-label="Test">
13 <div role="listbox">
14 <div role="option">option 1</div>
15 <div role="option">option 2</div>
16 </div>
17 </div>
18
19
20 <p id="description"></p>
21 <div id="console"></div>
22
23 <script>
24
25     description("This tests that the aria roles for combobox and aria-expanded work correctly in conjunction.");
26
27     if (window.accessibilityController) {
28
29           var combobox = document.getElementById("combo");
30           combobox.focus();
31
32           combobox = accessibilityController.focusedElement;
33
34           debug("Role: " + combobox.role);
35           shouldBe("combobox.isExpanded", "false");
36     
37           combobox.showMenu();
38
39           // As of now, the isExpanded value won't be updated through an AX call.
40           shouldBe("combobox.isExpanded", "false");
41
42           var firstChild = combobox.childAtIndex(0);
43           debug("Role: " + firstChild.role);
44     }
45
46     successfullyParsed = true;
47 </script>
48
49 <script src="../fast/js/resources/js-test-post.js"></script>
50 </body>
51 </html>