1b175459c04b0ecb4f8a07a8c9c61601f004189c
[WebKit-https.git] / LayoutTests / accessibility / hit-test-input-auto-fill-button.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script src="resources/shouldBeAccessibleByCursor.js"></script>
6 </head>
7 <body>
8 <div id="description"></div>
9 <input type="password" id="password">
10 <div id="console"></div>
11 <script>
12 description("This tests that the AutoFill button is hit testable.");
13
14 if (!window.internals || !window.accessibilityController)
15     testFailed("You must run this test in the test tool and have implemented window.internals and window.accessibilityController.");
16 else {
17     internals.setShowAutoFillButton(document.getElementById("password"), true);
18
19     shouldBeAccessibleByCursor(accessibilityController.accessibleElementById("password").childAtIndex(0), "AutoFill button");
20 }
21 </script>
22 <script src="../resources/js-test-post.js"></script>
23 </body>
24 </html>