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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-iframe-no-focusable-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 basic traversal correctness of Spatial Navigation 3 This test ensures the basic traversal correctness of Spatial Navigation
4 algorithm: iframes without any focusable content should be ignored. 4 algorithm: iframes without any focusable content should be ignored.
5 5
6 * Pre-conditions: 6 * Pre-conditions:
7 1) DRT support for SNav enable/disable. 7 1) DRT support for SNav enable/disable.
8 8
9 * Navigation steps: 9 * Navigation steps:
10 1) Loads this page, focus goes to "start" automatically. 10 1) Loads this page, focus goes to "start" automatically.
(...skipping 19 matching lines...) Expand all
30 ["Up" , "end"], 30 ["Up" , "end"],
31 ["Up" , "end"], 31 ["Up" , "end"],
32 ["Up" , "end"], 32 ["Up" , "end"],
33 ["Up" , "start"], 33 ["Up" , "start"],
34 ["DONE", "DONE"] 34 ["DONE", "DONE"]
35 ]; 35 ];
36 36
37 if (window.testRunner) { 37 if (window.testRunner) {
38 testRunner.dumpAsText(); 38 testRunner.dumpAsText();
39 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 39 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
40 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); 40 window.internals.settings.setSpatialNavigationEnabled(true);
41 testRunner.waitUntilDone(); 41 testRunner.waitUntilDone();
42 } 42 }
43 43
44 function runTest() 44 function runTest()
45 { 45 {
46 // starting the test itself: get to a known place. 46 // starting the test itself: get to a known place.
47 document.getElementById("start").focus(); 47 document.getElementById("start").focus();
48 48
49 initTest(resultMap, testCompleted); 49 initTest(resultMap, testCompleted);
50 } 50 }
(...skipping 20 matching lines...) Expand all
71 <body> 71 <body>
72 <img width=120 height=200 src='resources/green.png'> 72 <img width=120 height=200 src='resources/green.png'>
73 </body> 73 </body>
74 "></iframe><br> 74 "></iframe><br>
75 75
76 <a id="end" href="a">e</a> 76 <a id="end" href="a">e</a>
77 <div id="console"></div> 77 <div id="console"></div>
78 This is to test that an iframe with no focusable content still scrolls 78 This is to test that an iframe with no focusable content still scrolls
79 </body> 79 </body>
80 </html> 80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698