[Web GPU] GPURenderPassEncoder updates: setBlendColor, setViewport, setScissorRect
[WebKit-https.git] / LayoutTests / accessibility / auto-fill-types.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../resources/js-test-pre.js"></script>
6 </head>
7 <body id="body">
8
9 <input type="text" value="hello" id="textfield">
10
11 <p id="description"></p>
12 <div id="console"></div>
13
14 <script>
15
16     description("This tests that the auto-filled buttons show up.");
17
18     if (window.accessibilityController) {
19         var textField = document.getElementById("textfield");
20         var axTextField = accessibilityController.accessibleElementById("textfield");
21         debug("Initial auto-fill available: " + axTextField.boolAttributeValue("AXValueAutofillAvailable"));
22         debug("Auto-fill type: " + axTextField.stringAttributeValue("AXValueAutofillType"));
23
24         window.internals.setShowAutoFillButton(document.getElementById("textfield"), "Contacts");
25         var contactsButton = axTextField.childAtIndex(1);
26         debug("Contact button role: " + contactsButton.role);
27         debug("Contact button label: " + contactsButton.description);
28         debug("Auto-fill type: " + axTextField.stringAttributeValue("AXValueAutofillType"));
29
30         window.internals.setShowAutoFillButton(document.getElementById("textfield"), "Credentials");
31         var credentialsButton = axTextField.childAtIndex(1);
32         debug("Credentials button role: " + credentialsButton.role);
33         debug("Credentials button label: " + credentialsButton.description);
34         debug("Auto-fill type: " + axTextField.stringAttributeValue("AXValueAutofillType"));
35
36         debug("Post auto-fill available: " + axTextField.boolAttributeValue("AXValueAutofillAvailable"));
37     }
38
39 </script>
40
41 <script src="../resources/js-test-post.js"></script>
42 </body>
43 </html>