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

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

Powered by Google App Engine
This is Rietveld 408576698