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

Side by Side Diff: LayoutTests/fast/spatial-navigation/snav-z-index.html

Issue 773333002: Fix the rightOf and below conditions for overlapping case. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: address review comments Created 6 years 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", "s22"], 8 ["Down", "s22"],
9 ["Down", "p11"], 9 ["Down", "p11"],
10 ["Down", "s23"], 10 ["Down", "s23"],
11 ["Down", "p12"], 11 ["Down", "p12"],
12 ["Down", "s24"], 12 ["Down", "s24"],
13 ["Down", "s25"], 13 ["Down", "s25"],
14 ["Up", "s24"], 14 ["Up", "s24"],
15 ["Up", "p12"], 15 ["Up", "p12"],
16 ["Right", "p22"], 16 ["Right", "p22"],
17 ["Left", "p12"], 17 ["Left", "p12"],
18 ["Left", "s24"], 18 ["Left", "s24"],
19 ["Left", "s14"], 19 ["Left", "s14"],
20 ["Up", "s13"], 20 ["Up", "s13"],
21 ["Up", "s12"], 21 ["Up", "s12"],
22 ["Right", "s22"], 22 ["Right", "s22"],
23 ["Right", "p11"], 23 ["Right", "p11"],
24 ["Right", "p21"], 24 ["Right", "p21"],
25 ["Up", "s22"],
26 ["Up", "start"], 25 ["Up", "start"],
27 ["DONE", "DONE"] 26 ["DONE", "DONE"]
28 ]; 27 ];
29 28
30 if (window.testRunner) { 29 if (window.testRunner) {
31 testRunner.dumpAsText(); 30 testRunner.dumpAsText();
32 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 31 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
33 window.internals.settings.setSpatialNavigationEnabled(true); 32 window.internals.settings.setSpatialNavigationEnabled(true);
34 testRunner.waitUntilDone(); 33 testRunner.waitUntilDone();
35 } 34 }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 <div tabindex="1" id="start" class="simple"><img src="resources/green.png" width =160px height=60px></div> 79 <div tabindex="1" id="start" class="simple"><img src="resources/green.png" width =160px height=60px></div>
81 <div tabindex="2" id="s22" class="simple"><img src="resources/green.png" width=1 60px height=60px></div> 80 <div tabindex="2" id="s22" class="simple"><img src="resources/green.png" width=1 60px height=60px></div>
82 <div tabindex="3" id="s23" class="simple"><img src="resources/green.png" width=1 60px height=60px></div> 81 <div tabindex="3" id="s23" class="simple"><img src="resources/green.png" width=1 60px height=60px></div>
83 <div tabindex="4" id="s24" class="simple"><img src="resources/green.png" width=1 60px height=60px></div> 82 <div tabindex="4" id="s24" class="simple"><img src="resources/green.png" width=1 60px height=60px></div>
84 <div tabindex="5" id="s25" class="simple"><img src="resources/green.png" width=1 60px height=60px></div> 83 <div tabindex="5" id="s25" class="simple"><img src="resources/green.png" width=1 60px height=60px></div>
85 </td></tr></table> 84 </td></tr></table>
86 <div id="console"></div> 85 <div id="console"></div>
87 This test is testing that we can prefer the elements with higher Z indexes. 86 This test is testing that we can prefer the elements with higher Z indexes.
88 </body> 87 </body>
89 </html> 88 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698