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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-imagemap-area-not-focusable.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 ["Up", "1"], 11 ["Up", "1"],
12 ["Up", "start"], 12 ["Up", "start"],
13 ["DONE", "DONE"] 13 ["DONE", "DONE"]
14 ]; 14 ];
15 15
16 if (window.testRunner) { 16 if (window.testRunner) {
17 testRunner.dumpAsText(); 17 testRunner.dumpAsText();
18 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 18 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
19 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); 19 window.internals.settings.setSpatialNavigationEnabled(true);
20 testRunner.waitUntilDone(); 20 testRunner.waitUntilDone();
21 } 21 }
22 22
23 function runTest() 23 function runTest()
24 { 24 {
25 // starting the test itself: get to a known place. 25 // starting the test itself: get to a known place.
26 document.getElementById("start").focus(); 26 document.getElementById("start").focus();
27 27
28 initTest(resultMap, testCompleted); 28 initTest(resultMap, testCompleted);
29 } 29 }
(...skipping 18 matching lines...) Expand all
48 <a id="start" href="a"><img src="resources/green.png" width=50px height=50px ></a> 48 <a id="start" href="a"><img src="resources/green.png" width=50px height=50px ></a>
49 <div> 49 <div>
50 <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> 50 <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>
51 </div> 51 </div>
52 <a id="3" href="a"><img src="resources/green.png" width=50px height=50px></a > 52 <a id="3" href="a"><img src="resources/green.png" width=50px height=50px></a >
53 <div id="console"></div> 53 <div id="console"></div>
54 <div>This test tests that areas of an imagemap without an href are not focus able, thus can not be reached with spatial navigation.</div> 54 <div>This test tests that areas of an imagemap without an href are not focus able, thus can not be reached with spatial navigation.</div>
55 </body> 55 </body>
56 </html> 56 </html>
57 57
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698