dbade54dfa8dbe94117ec6e642c830c858019f10
[WebKit-https.git] / LayoutTests / accessibility / hit-test-input-search-cancel-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="search" id="search" value="d" autofocus>
10 <div id="console"></div>
11 <script>
12 description("This tests that the search cancel 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     shouldBeAccessibleByCursor(accessibilityController.accessibleElementById("search").childAtIndex(1), "search cancel button");
18 }
19 </script>
20 <script src="../resources/js-test-post.js"></script>
21 </body>
22 </html>