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

Side by Side Diff: LayoutTests/fast/spatial-navigation/snav-div-in-anchor.html

Issue 767283005: Take continuation into consideration when calculating absoluteClippedOverflowRect. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comments and rebaseline Created 5 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/fast/spatial-navigation/snav-div-in-anchor-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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", "e1"],
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 window.internals.settings.setSpatialNavigationEnabled(true); 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 }
26 26
27 function testCompleted() 27 function testCompleted()
28 { 28 {
29 if (window.testRunner) 29 if (window.testRunner)
30 testRunner.notifyDone(); 30 testRunner.notifyDone();
31 } 31 }
32 32
33 window.onload = runTest; 33 window.onload = runTest;
34
35 </script> 34 </script>
36 </head> 35 </head>
36 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml" style="padding:20px ">
37 <a href="#" id="start"><div>DivInLinkA</div></a>
38 <a href="#" id="e1"><div>DivInLinkB</div></a>
37 39
38 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> 40 <div id="console"></div>
39 <p>This is <a id="start" href="a">link_1</a>.</p> 41 This test is testing that we can navigate on links with divs inside.
40 <br>This is <a id="1" style="display:none;" href="a">you should not see me </a> hidden link.<br> 42 </body>
41 <p>This is <a id="end" href="a">link_2</a>.</p>
42 <div id="console"></div>
43 <p>This test is to test that focusable elements with display:none do not gra b the focus.</p>
44 </body>
45 </html> 43 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/spatial-navigation/snav-div-in-anchor-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698