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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-imagemap-simple.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 3
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 <script src="resources/spatial-navigation-utils.js"></script> 5 <script src="resources/spatial-navigation-utils.js"></script>
6 <script type="application/javascript"> 6 <script type="application/javascript">
7 7
8 var resultMap = [ 8 var resultMap = [
9 ["Down", "1"], 9 ["Down", "1"],
10 ["Down", "3"], 10 ["Down", "3"],
11 ["Down", "5"], 11 ["Down", "5"],
12 ["Up", "3"], 12 ["Up", "3"],
13 ["Right", "4"], 13 ["Right", "4"],
14 ["Right", "6"], 14 ["Right", "6"],
15 ["Left", "4"], 15 ["Left", "4"],
16 ["Up", "2"], 16 ["Up", "2"],
17 ["Left", "1"], 17 ["Left", "1"],
18 ["Up", "start"], 18 ["Up", "start"],
19 ["DONE", "DONE"] 19 ["DONE", "DONE"]
20 ]; 20 ];
21 21
22 if (window.testRunner) { 22 if (window.testRunner) {
23 testRunner.dumpAsText(); 23 testRunner.dumpAsText();
24 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 24 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
25 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); 25 window.internals.settings.setSpatialNavigationEnabled(true);
26 testRunner.waitUntilDone(); 26 testRunner.waitUntilDone();
27 } 27 }
28 28
29 function runTest() 29 function runTest()
30 { 30 {
31 // starting the test itself: get to a known place. 31 // starting the test itself: get to a known place.
32 document.getElementById("start").focus(); 32 document.getElementById("start").focus();
33 33
34 initTest(resultMap, testCompleted); 34 initTest(resultMap, testCompleted);
35 } 35 }
(...skipping 20 matching lines...) Expand all
56 <a id="start" href="a"><img src="resources/green.png" width=50px height=50px ></a> 56 <a id="start" href="a"><img src="resources/green.png" width=50px height=50px ></a>
57 <div> 57 <div>
58 <img src="resources/green.png" width=200px height=200px usemap="#map"><a i d="6" href="a"><img src="resources/green.png" width=50px height=50px></a> 58 <img src="resources/green.png" width=200px height=200px usemap="#map"><a i d="6" href="a"><img src="resources/green.png" width=50px height=50px></a>
59 </div> 59 </div>
60 <a id="5" href="a"><img src="resources/green.png" width=50px height=50px></a > 60 <a id="5" href="a"><img src="resources/green.png" width=50px height=50px></a >
61 <div id="console"></div> 61 <div id="console"></div>
62 <div>This test tests that areas of an imagemap can be reached with spatial n avigation.</div> 62 <div>This test tests that areas of an imagemap can be reached with spatial n avigation.</div>
63 </body> 63 </body>
64 </html> 64 </html>
65 65
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698