Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / auto-filled-value.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 attribute is reported correctly.");
17
18     if (window.accessibilityController) {
19
20         var textField = document.getElementById("textfield");
21         var axTextField = accessibilityController.accessibleElementById("textfield");
22
23         debug("Initial auto-fill value: " + axTextField.boolAttributeValue("AXValueAutofilled"));
24         window.internals.setAutofilled(textField, true);
25         debug("Set auto-fill to true value: " + axTextField.boolAttributeValue("AXValueAutofilled"));
26         window.internals.setAutofilled(textField, false);
27         debug("Set auto-fill to false value: " + axTextField.boolAttributeValue("AXValueAutofilled"));
28     }
29
30 </script>
31
32 <script src="../resources/js-test-post.js"></script>
33 </body>
34 </html>