REGRESSION (r238078): Do not draw caps lock indicator when Strong Password button...
[WebKit-https.git] / LayoutTests / fast / forms / auto-fill-button / caps-lock-indicator-should-not-be-visible-when-auto-fill-strong-password-button-is-visible-expected.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../resources/ui-helper.js"></script>
5 <script>
6 if (window.testRunner)
7     testRunner.waitUntilDone();
8 </script>
9 </head>
10 <body>
11 <p>This tests that the caps lock indicator is not visible when the Strong Password AutoFill button is shown. It can only be tested in the test tool.</p>
12 <input type="password" value="A quick brown fox jumped over the lazy dog.">
13 <script>
14 async function runTest()
15 {
16     if (!window.internals)
17         return;
18
19     let input = document.querySelector("input");
20     internals.setAutofilled(input, true);
21     internals.setShowAutoFillButton(input, "StrongPassword");
22
23     input.addEventListener("focus", () => testRunner.notifyDone(), { once: true });
24     await UIHelper.activateElement(input);
25 }
26
27 runTest();
28 </script>
29 </body>
30 </html>