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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-fully-aligned-horizontally.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 horizontal direction : 4 logic implemented by Spatial Navigation algorithm in an horizontal 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 ["Down", "25"], 47 ["Down", "25"],
48 ["Right", "26"], 48 ["Right", "26"],
49 ["Down", "27"], 49 ["Down", "27"],
50 ["Down", "end"], 50 ["Down", "end"],
51 ["DONE", "DONE"] 51 ["DONE", "DONE"]
52 ]; 52 ];
53 53
54 if (window.testRunner) { 54 if (window.testRunner) {
55 testRunner.dumpAsText(); 55 testRunner.dumpAsText();
56 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 56 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
57 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); 57 window.internals.settings.setSpatialNavigationEnabled(true);
58 testRunner.waitUntilDone(); 58 testRunner.waitUntilDone();
59 } 59 }
60 60
61 function runTest() 61 function runTest()
62 { 62 {
63 // starting the test itself: get to a known place. 63 // starting the test itself: get to a known place.
64 document.getElementById("start").focus(); 64 document.getElementById("start").focus();
65 65
66 initTest(resultMap, testCompleted); 66 initTest(resultMap, testCompleted);
67 } 67 }
(...skipping 21 matching lines...) Expand all
89 <a id="19" href="a">How Now Brow</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a id="20" hr ef="p">n Cow</a><br> 89 <a id="19" href="a">How Now Brow</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a id="20" hr ef="p">n Cow</a><br>
90 <a id="21" href="a">How Now Brown</a> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nb sp; <a id="22" href="p">Cow</a><br> 90 <a id="21" href="a">How Now Brown</a> &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp ; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nb sp; <a id="22" href="p">Cow</a><br>
91 <a id="23" href="a">How Now Brown C</a> &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nb sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <a id="24" href="p">ow</a><br> 91 <a id="23" href="a">How Now Brown C</a> &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nb sp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <a id="24" href="p">ow</a><br>
92 <a id="25" href="a">How Now Brown Co</a> &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &n bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <a id="26" href="p">w</a><br> 92 <a id="25" href="a">How Now Brown Co</a> &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &n bsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <a id="26" href="p">w</a><br>
93 <a id="27" href="a">How Now Brown Cow</a><br><br> 93 <a id="27" href="a">How Now Brown Cow</a><br><br>
94 <a id="end" href="a">test<br></a> 94 <a id="end" href="a">test<br></a>
95 <div id="console"></div> 95 <div id="console"></div>
96 </body> 96 </body>
97 </html> 97 </html>
98 98
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698