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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-hidden-iframe-zero-size.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", "end"], 8 ["Down", "end"],
9 ["DONE", "DONE"] 9 ["DONE", "DONE"]
10 ]; 10 ];
11 11
12 if (window.testRunner) { 12 if (window.testRunner) {
13 testRunner.dumpAsText(); 13 testRunner.dumpAsText();
14 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 14 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
15 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); 15 window.internals.settings.setSpatialNavigationEnabled(true);
16 testRunner.waitUntilDone(); 16 testRunner.waitUntilDone();
17 } 17 }
18 18
19 function runTest() 19 function runTest()
20 { 20 {
21 // starting the test itself: get to a known place. 21 // starting the test itself: get to a known place.
22 document.getElementById("start").focus(); 22 document.getElementById("start").focus();
23 23
24 initTest(resultMap, testCompleted); 24 initTest(resultMap, testCompleted);
25 } 25 }
(...skipping 16 matching lines...) Expand all
42 <a id='11' href='http://a'>b</a> 42 <a id='11' href='http://a'>b</a>
43 <a id='12' href='http://a'>c</a> 43 <a id='12' href='http://a'>c</a>
44 <a id='13' href='http://a'>d</a> 44 <a id='13' href='http://a'>d</a>
45 </body> 45 </body>
46 "></iframe><br> an iframe with size 0.<br> 46 "></iframe><br> an iframe with size 0.<br>
47 <p>This is <a id="end" href="a">link_2</a>.</p> 47 <p>This is <a id="end" href="a">link_2</a>.</p>
48 <div id="console"></div> 48 <div id="console"></div>
49 <p>This test is to test that an iframe with size 0 does not get focus, and n either do its descendants. 49 <p>This test is to test that an iframe with size 0 does not get focus, and n either do its descendants.
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698