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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-only-clipped-overflow-content.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 content overflow traversal correctness of spatial navi gation: 3 This test ensures the content overflow traversal correctness of spatial navi gation:
4 if an element if clipped overflow in a scrollable container (e.g. <div>), 4 if an element if clipped overflow in a scrollable container (e.g. <div>),
5 scroll-in-direction should happen in the container box, not on the outer vie w. 5 scroll-in-direction should happen in the container box, not on the outer vie w.
6 6
7 * Pre-conditions: 7 * Pre-conditions:
8 1) DRT support for spatial navigation enable/disable. 8 1) DRT support for spatial navigation enable/disable.
9 9
10 * Navigation steps: 10 * Navigation steps:
(...skipping 21 matching lines...) Expand all
32 <script type="application/javascript"> 32 <script type="application/javascript">
33 33
34 var resultMap = [ 34 var resultMap = [
35 ["Down", "start"], 35 ["Down", "start"],
36 ["DONE", "DONE"] 36 ["DONE", "DONE"]
37 ]; 37 ];
38 38
39 if (window.testRunner) { 39 if (window.testRunner) {
40 testRunner.dumpAsText(); 40 testRunner.dumpAsText();
41 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 41 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
42 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); 42 window.internals.settings.setSpatialNavigationEnabled(true);
43 testRunner.waitUntilDone(); 43 testRunner.waitUntilDone();
44 } 44 }
45 45
46 function runTest() 46 function runTest()
47 { 47 {
48 // starting the test itself: get to a known place. 48 // starting the test itself: get to a known place.
49 document.getElementById("start").focus(); 49 document.getElementById("start").focus();
50 50
51 initTest(resultMap, testCompleted); 51 initTest(resultMap, testCompleted);
52 } 52 }
(...skipping 14 matching lines...) Expand all
67 <p>That is is a normal <a id="start" href="a">link</a>.</p> 67 <p>That is is a normal <a id="start" href="a">link</a>.</p>
68 <div class="scroll" id="div"> 68 <div class="scroll" id="div">
69 <p>This is a scrollable Div created with the CSS property overflow.</p> 69 <p>This is a scrollable Div created with the CSS property overflow.</p>
70 <br><br><br><br><br><br><br><br> 70 <br><br><br><br><br><br><br><br>
71 <p> ... and here we have a clipped overflow <a id="1" href="a">link</a>.</ p> 71 <p> ... and here we have a clipped overflow <a id="1" href="a">link</a>.</ p>
72 </div> 72 </div>
73 <p>And this is another normal <a id="2" href="a">link_2</a>.</p> 73 <p>And this is another normal <a id="2" href="a">link_2</a>.</p>
74 <div id="console"></div> 74 <div id="console"></div>
75 </body> 75 </body>
76 </html> 76 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698