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

Unified Diff: LayoutTests/fast/spatial-navigation/snav-aligned-not-aligned.html

Issue 797463003: spatnav: Allow focus move to a close-by not-fully-aligned node over a distant but fully-aligned nod… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/spatial-navigation/snav-aligned-not-aligned-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/spatial-navigation/snav-aligned-not-aligned.html
diff --git a/LayoutTests/fast/spatial-navigation/snav-not-below.html b/LayoutTests/fast/spatial-navigation/snav-aligned-not-aligned.html
similarity index 65%
copy from LayoutTests/fast/spatial-navigation/snav-not-below.html
copy to LayoutTests/fast/spatial-navigation/snav-aligned-not-aligned.html
index fa8066dabf79be9ef459de7c130dff7e480b354f..51f2be6521af1d1cd7c762b060b1c60aaa87d496 100644
--- a/LayoutTests/fast/spatial-navigation/snav-not-below.html
+++ b/LayoutTests/fast/spatial-navigation/snav-aligned-not-aligned.html
@@ -6,46 +6,56 @@
<style>
body a {
position: absolute;
- height: 100px;
+ height: 50px;
width: 100px;
border: 1px solid black;
}
#e1 {
- left: 10px;
- top: 210px;
+ left: 50px;
+ top: 250px;
}
#e2 {
- left: 120px;
- top: 250px;
+ left: 200px;
+ top: 300px;
+ height: 100px;
}
#e3 {
- left: 250px;
+ left: 350px;
+ top: 300px;
+}
+#e4 {
+ left: 500px;
+ top: 200px;
+ height: 100px;
+}
+#e5 {
+ left: 650px;
top: 250px;
- height: 120px;
}
</style>
<body id="some-content" onload="runTest()">
<p id="description"></p>
<div id="elements">
-<a id="e1" href="#e1">Element 1</a>
-<a id="e2" href="#e2">Element 2</a>
-<a id="e3" href="#e3">Element 3</a>
+<a id="e1" href="#e1">E1</a>
+<a id="e2" href="#e2">E2</a>
+<a id="e3" href="#e3">E3</a>
+<a id="e4" href="#e4">E4</a>
+<a id="e5" href="#e5">E5</a>
</div>
<div id="console"></div>
<script type="application/javascript">
-description('This test ensures that e2 is NOT below e1 and e3 is NOT below e2.');
+description('This test ensures that Spatial Navigation works with symmetrically positoned rects');
jsTestIsAsync = true;
var resultMap = [
- ["Down", "e1"],
- ["Right", "e2"],
+ ["Right", "e4"],
+ ["Right", "e5"],
+ ["Left", "e4"],
+ ["Left", "e1"],
["Down", "e2"],
["Right", "e3"],
- ["Up", "e3"],
- ["Left", "e2"],
- ["Up", "e2"],
- ["Left", "e1"],
+ ["Right", "e4"],
["DONE", "DONE"]
];
« no previous file with comments | « no previous file | LayoutTests/fast/spatial-navigation/snav-aligned-not-aligned-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698