Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-multiple-select-focusring.html

Issue 2077183002: Revert of Fix re-usage of stale cached WebPreferences in RenderViewHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <body> 2 <body>
3 3
4 <select id="multiselect" multiple="multiple"> 4 <select id="multiselect" multiple="multiple">
5 <option>make-the-item-long-enough-to-make-a-difference-in-pixel-test</option > 5 <option>make-the-item-long-enough-to-make-a-difference-in-pixel-test</option >
6 <option>b</option> 6 <option>b</option>
7 </select> 7 </select>
8 8
9 <script> 9 <script>
10 if (window.testRunner) { 10 if (window.testRunner) {
11 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 11 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
12 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); 12 window.internals.settings.setSpatialNavigationEnabled(true);
13 } 13 }
14 14
15 var multiselect = document.getElementById('multiselect'); 15 var multiselect = document.getElementById('multiselect');
16 16
17 if (window.eventSender) { 17 if (window.eventSender) {
18 eventSender.mouseMoveTo(multiselect.offsetLeft + 5, multiselect.offsetTop + 5); 18 eventSender.mouseMoveTo(multiselect.offsetLeft + 5, multiselect.offsetTop + 5);
19 eventSender.mouseDown(); 19 eventSender.mouseDown();
20 eventSender.mouseUp(); 20 eventSender.mouseUp();
21 } else { 21 } else {
22 document.write("To manually test, click on the 'a' option and no focus ring on the selected item should be seen."); 22 document.write("To manually test, click on the 'a' option and no focus ring on the selected item should be seen.");
23 } 23 }
24 </script> 24 </script>
25 </body> 25 </body>
26 </html> 26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698