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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-iframe-with-offscreen-focusable-element.html

Issue 2042763002: 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 cross iframe traversal correctness of Spatial Navigati on 3 This test ensures the cross iframe traversal correctness of Spatial Navigati on
4 algorithm: focusable elements in an <iframe> should be accessible even when 4 algorithm: focusable elements in an <iframe> should be accessible even when
5 the current focused element is in another <iframe> in the same page. 5 the current focused element is in another <iframe> in the same page.
6 6
7 * Pre-conditions: 7 * Pre-conditions:
8 1) DRT support for SNav enable/disable. 8 1) DRT support for SNav enable/disable.
9 9
10 * Navigation steps: 10 * Navigation steps:
(...skipping 25 matching lines...) Expand all
36 ["Up", "2"], 36 ["Up", "2"],
37 ["Up", "2"], 37 ["Up", "2"],
38 ["Up", "1"], 38 ["Up", "1"],
39 ["Up", "start"], 39 ["Up", "start"],
40 ["DONE", "DONE"] 40 ["DONE", "DONE"]
41 ]; 41 ];
42 42
43 if (window.testRunner) { 43 if (window.testRunner) {
44 testRunner.dumpAsText(); 44 testRunner.dumpAsText();
45 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 45 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
46 window.internals.settings.setSpatialNavigationEnabled(true); 46 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1);
47 testRunner.waitUntilDone(); 47 testRunner.waitUntilDone();
48 } 48 }
49 49
50 function runTest() 50 function runTest()
51 { 51 {
52 // starting the test itself: get to a known place. 52 // starting the test itself: get to a known place.
53 document.getElementById("start").focus(); 53 document.getElementById("start").focus();
54 54
55 initTest(resultMap, testCompleted); 55 initTest(resultMap, testCompleted);
56 } 56 }
(...skipping 17 matching lines...) Expand all
74 <img src='no_image' width=50 height=300> 74 <img src='no_image' width=50 height=300>
75 <a id='2' href='a'><img src='no_image' width=30 height=30></a> 75 <a id='2' href='a'><img src='no_image' width=30 height=30></a>
76 </div> 76 </div>
77 </body> 77 </body>
78 "></iframe><br> 78 "></iframe><br>
79 79
80 <div><a id="end" href="a"><img src="resources/green.png" width=30 height=30> </a></div> 80 <div><a id="end" href="a"><img src="resources/green.png" width=30 height=30> </a></div>
81 <div id="console"></div> 81 <div id="console"></div>
82 </body> 82 </body>
83 </html> 83 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698