OLD | NEW |
1 <html> | 1 <html> |
2 <!-- | 2 <!-- |
3 This test ensures the correctness of the "Fully aligned" precedence | 3 This test ensures the correctness of the "Fully aligned" precedence |
4 logic implemented by Spatial Navigation algorithm in an vertical direction: | 4 logic implemented by Spatial Navigation algorithm in an vertical direction: |
5 targets whose middle falls between the top and bottom of the current focused | 5 targets whose middle falls between the top and bottom of the current focused |
6 element are preferably to move focus to, even if it is not the shortest dist
ance. | 6 element are preferably to move focus to, even if it is not the shortest dist
ance. |
7 | 7 |
8 * Pre-conditions: | 8 * Pre-conditions: |
9 1) DRT support for SNav enable/disable. | 9 1) DRT support for SNav enable/disable. |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } | 45 } |
46 | 46 |
47 function testCompleted() | 47 function testCompleted() |
48 { | 48 { |
49 if (window.testRunner) | 49 if (window.testRunner) |
50 testRunner.notifyDone(); | 50 testRunner.notifyDone(); |
51 } | 51 } |
52 | 52 |
53 window.onload = runTest; | 53 window.onload = runTest; |
54 </script> | 54 </script> |
55 <script src="js/resources/js-test-post.js"></script> | |
56 </head> | 55 </head> |
57 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> | 56 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> |
58 <div style="margin-left: 40px; text-align: left;"> | 57 <div style="margin-left: 40px; text-align: left;"> |
59 <div style="margin-left: 40px;"> | 58 <div style="margin-left: 40px;"> |
60 <a id="start" href="a">test<br></a> | 59 <a id="start" href="a">test<br></a> |
61 </div> | 60 </div> |
62 <a id="2" href="a">test</a>  
; <a id="3" href="a">test</a><br> | 61 <a id="2" href="a">test</a>  
; <a id="3" href="a">test</a><br> |
63 <div style="margin-left: 40px;"> | 62 <div style="margin-left: 40px;"> |
64 <a id="4" href="a">test<br></a> | 63 <a id="4" href="a">test<br></a> |
65 </div> | 64 </div> |
66 <div style="margin-left: 80px;"> | 65 <div style="margin-left: 80px;"> |
67 <a id="5" href="a">test<br></a> | 66 <a id="5" href="a">test<br></a> |
68 </div> | 67 </div> |
69 <div style="margin-left: 40px;"> | 68 <div style="margin-left: 40px;"> |
70 <a id="6" href="a">test<br></a> | 69 <a id="6" href="a">test<br></a> |
71 </div> | 70 </div> |
72 <a id="7" href="a">test<br></a> | 71 <a id="7" href="a">test<br></a> |
73 <br><br><br><br> | 72 <br><br><br><br> |
74 <div style="margin-left: 40px;"> | 73 <div style="margin-left: 40px;"> |
75 <a id="8" href="a">test<br></a> | 74 <a id="8" href="a">test<br></a> |
76 </div> | 75 </div> |
77 <a id="end" href="a">test<br></a> | 76 <a id="end" href="a">test<br></a> |
78 </div> | 77 </div> |
79 <div id="console"></div> | 78 <div id="console"></div> |
80 </body> | 79 </body> |
81 </html> | 80 </html> |
82 | 81 |
OLD | NEW |