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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-fully-aligned-vertically.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 <html> 1 <html>
2 <!-- 2 <!--
3 This test ensures the correctness of the "Fully aligned" precedence 3 This test ensures the correctness of the "Fully aligned" precedence
4 logic implemented by Spatial Navigation algorithm in an vertical direction: 4 logic implemented by Spatial Navigation algorithm in an vertical direction:
5 targets whose middle falls between the top and bottom of the current focused 5 targets whose middle falls between the top and bottom of the current focused
6 element are preferably to move focus to, even if it is not the shortest dist ance. 6 element are preferably to move focus to, even if it is not the shortest dist ance.
7 7
8 * Pre-conditions: 8 * Pre-conditions:
9 1) DRT support for SNav enable/disable. 9 1) DRT support for SNav enable/disable.
10 10
(...skipping 14 matching lines...) Expand all
25 ["Down", "7"], 25 ["Down", "7"],
26 ["Down", "end"], 26 ["Down", "end"],
27 ["Up", "8"], 27 ["Up", "8"],
28 ["Up", "6"], 28 ["Up", "6"],
29 ["DONE", "DONE"] 29 ["DONE", "DONE"]
30 ]; 30 ];
31 31
32 if (window.testRunner) { 32 if (window.testRunner) {
33 testRunner.dumpAsText(); 33 testRunner.dumpAsText();
34 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 34 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
35 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); 35 window.internals.settings.setSpatialNavigationEnabled(true);
36 testRunner.waitUntilDone(); 36 testRunner.waitUntilDone();
37 } 37 }
38 38
39 function runTest() 39 function runTest()
40 { 40 {
41 // starting the test itself: get to a known place. 41 // starting the test itself: get to a known place.
42 document.getElementById("start").focus(); 42 document.getElementById("start").focus();
43 43
44 initTest(resultMap, testCompleted); 44 initTest(resultMap, testCompleted);
45 } 45 }
(...skipping 26 matching lines...) Expand all
72 <br><br><br><br> 72 <br><br><br><br>
73 <div style="margin-left: 40px;"> 73 <div style="margin-left: 40px;">
74 <a id="8" href="a">test<br></a> 74 <a id="8" href="a">test<br></a>
75 </div> 75 </div>
76 <a id="end" href="a">test<br></a> 76 <a id="end" href="a">test<br></a>
77 </div> 77 </div>
78 <div id="console"></div> 78 <div id="console"></div>
79 </body> 79 </body>
80 </html> 80 </html>
81 81
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698