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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-z-index.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 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script src="resources/spatial-navigation-utils.js"></script> 4 <script src="resources/spatial-navigation-utils.js"></script>
5 <script type="application/javascript"> 5 <script type="application/javascript">
6 6
7 var resultMap = [ 7 var resultMap = [
8 ["Down", "s22"], 8 ["Down", "s22"],
9 ["Down", "p11"], 9 ["Down", "p11"],
10 ["Down", "s23"], 10 ["Down", "s23"],
(...skipping 11 matching lines...) Expand all
22 ["Right", "s22"], 22 ["Right", "s22"],
23 ["Right", "p11"], 23 ["Right", "p11"],
24 ["Right", "p21"], 24 ["Right", "p21"],
25 ["Up", "start"], 25 ["Up", "start"],
26 ["DONE", "DONE"] 26 ["DONE", "DONE"]
27 ]; 27 ];
28 28
29 if (window.testRunner) { 29 if (window.testRunner) {
30 testRunner.dumpAsText(); 30 testRunner.dumpAsText();
31 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 31 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
32 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); 32 window.internals.settings.setSpatialNavigationEnabled(true);
33 testRunner.waitUntilDone(); 33 testRunner.waitUntilDone();
34 } 34 }
35 35
36 function runTest() 36 function runTest()
37 { 37 {
38 // starting the test itself: get to a known place. 38 // starting the test itself: get to a known place.
39 document.getElementById("start").focus(); 39 document.getElementById("start").focus();
40 40
41 initTest(resultMap, testCompleted); 41 initTest(resultMap, testCompleted);
42 } 42 }
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 <div tabindex="1" id="start" class="simple"><img src="resources/green.png" width =160px height=60px></div> 79 <div tabindex="1" id="start" class="simple"><img src="resources/green.png" width =160px height=60px></div>
80 <div tabindex="2" id="s22" class="simple"><img src="resources/green.png" width=1 60px height=60px></div> 80 <div tabindex="2" id="s22" class="simple"><img src="resources/green.png" width=1 60px height=60px></div>
81 <div tabindex="3" id="s23" class="simple"><img src="resources/green.png" width=1 60px height=60px></div> 81 <div tabindex="3" id="s23" class="simple"><img src="resources/green.png" width=1 60px height=60px></div>
82 <div tabindex="4" id="s24" class="simple"><img src="resources/green.png" width=1 60px height=60px></div> 82 <div tabindex="4" id="s24" class="simple"><img src="resources/green.png" width=1 60px height=60px></div>
83 <div tabindex="5" id="s25" class="simple"><img src="resources/green.png" width=1 60px height=60px></div> 83 <div tabindex="5" id="s25" class="simple"><img src="resources/green.png" width=1 60px height=60px></div>
84 </td></tr></table> 84 </td></tr></table>
85 <div id="console"></div> 85 <div id="console"></div>
86 This test is testing that we can prefer the elements with higher Z indexes. 86 This test is testing that we can prefer the elements with higher Z indexes.
87 </body> 87 </body>
88 </html> 88 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698