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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-unit-overflow-and-scroll-in-direction.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 the following Spatial Navigation 3 This test ensures the correctness the following Spatial Navigation
4 (SNav) algorithm features. 4 (SNav) algorithm features.
5 5
6 1) There is no unit overflow in the Spatial Navigation algorithm while 6 1) There is no unit overflow in the Spatial Navigation algorithm while
7 calculating the best node candidate to move focus to. To test that this 7 calculating the best node candidate to move focus to. To test that this
8 page positions some elements 10000000 pixels far from each other (distanc e 8 page positions some elements 10000000 pixels far from each other (distanc e
9 that can considered large enough for most of the Web Pages on the 9 that can considered large enough for most of the Web Pages on the
10 Internet). 10 Internet).
(...skipping 24 matching lines...) Expand all
35 ]; 35 ];
36 36
37 var resultMap2 = [ 37 var resultMap2 = [
38 ["Down", "end"], 38 ["Down", "end"],
39 ["DONE", "DONE"] 39 ["DONE", "DONE"]
40 ]; 40 ];
41 41
42 if (window.testRunner) { 42 if (window.testRunner) {
43 testRunner.dumpAsText(); 43 testRunner.dumpAsText();
44 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 44 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
45 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); 45 window.internals.settings.setSpatialNavigationEnabled(true);
46 testRunner.waitUntilDone(); 46 testRunner.waitUntilDone();
47 } 47 }
48 48
49 function runTest() 49 function runTest()
50 { 50 {
51 // starting the test itself: get to a known place. 51 // starting the test itself: get to a known place.
52 document.getElementById("start").focus(); 52 document.getElementById("start").focus();
53 53
54 setTimeout(step1 , 0); 54 setTimeout(step1 , 0);
55 } 55 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 </script> 90 </script>
91 </head> 91 </head>
92 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> 92 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
93 <a id="start" href="a">Start</a> 93 <a id="start" href="a">Start</a>
94 <div style='margin-top:100000000px'> 94 <div style='margin-top:100000000px'>
95 <a id="end" href="a">End</a> 95 <a id="end" href="a">End</a>
96 </div> 96 </div>
97 <div id="console"></div> 97 <div id="console"></div>
98 </body> 98 </body>
99 </html> 99 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698