Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / spatial-navigation / snav-multiple-select-focusring.html
blob96d868062c801dbf0b7832e0543d1ad61b70604a
1 <!DOCTYPE html>
2 <body>
4 <select id="multiselect" multiple="multiple">
5 <option>make-the-item-long-enough-to-make-a-difference-in-pixel-test</option>
6 <option>b</option>
7 </select>
9 <script>
10 if (window.testRunner) {
11 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
12 window.internals.settings.setSpatialNavigationEnabled(true);
15 var multiselect = document.getElementById('multiselect');
17 if (window.eventSender) {
18 eventSender.mouseMoveTo(multiselect.offsetLeft + 5, multiselect.offsetTop + 5);
19 eventSender.mouseDown();
20 eventSender.mouseUp();
21 } else {
22 document.write("To manually test, click on the 'a' option and no focus ring on the selected item should be seen.");
24 </script>
25 </body>
26 </html>