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

Unified Diff: LayoutTests/fast/spatial-navigation/snav-symmetrically-positioned.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: 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/spatial-navigation/snav-symmetrically-positioned.html
diff --git a/LayoutTests/fast/spatial-navigation/snav-not-rightof.html b/LayoutTests/fast/spatial-navigation/snav-symmetrically-positioned.html
similarity index 70%
copy from LayoutTests/fast/spatial-navigation/snav-not-rightof.html
copy to LayoutTests/fast/spatial-navigation/snav-symmetrically-positioned.html
index 8d9cf9ff7a56837366780090090288601ef019ae..6f763f29ca53312292f4a8c0e14b3fbd733ca35e 100644
--- a/LayoutTests/fast/spatial-navigation/snav-not-rightof.html
+++ b/LayoutTests/fast/spatial-navigation/snav-symmetrically-positioned.html
@@ -11,17 +11,24 @@ body a {
border: 1px solid black;
}
#e1 {
- left: 10px;
- top: 210px;
+ left: 100px;
+ top: 150px;
}
#e2 {
- left: 60px;
- top: 330px;
+ left: 400px;
+ top: 150px;
}
#e3 {
- left: 60px;
+ left: 250px;
+ top: 300px;
+}
+#e4 {
+ left: 100px;
+ top: 450px;
+}
+#e5 {
+ left: 400px;
top: 450px;
- width: 150px;
}
</style>
<body id="some-content" onload="runTest()">
@@ -30,22 +37,24 @@ body a {
<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="e4" href="#e4">Element 4</a>
+<a id="e5" href="#e5">Element 5</a>
</div>
<div id="console"></div>
<script type="application/javascript">
-description('This test ensures that e2 is NOT right of e1 and e3 is NOT right of e2.');
+description('This test ensures that Spatial Navigation works with symmetrically positoned rects');
jsTestIsAsync = true;
var resultMap = [
- ["Right", "e1"],
- ["Down", "e2"],
- ["Right", "e2"],
["Down", "e3"],
- ["Left", "e3"],
- ["Up", "e2"],
- ["Left", "e2"],
+ ["Down", "e4"],
+ ["Up", "e3"],
["Up", "e1"],
+ ["Right", "e2"],
+ ["Down", "e3"],
+ ["Down", "e4"],
+ ["Right", "e5"],
["DONE", "DONE"]
];

Powered by Google App Engine
This is Rietveld 408576698