| <!DOCTYPE html> |
| <style> |
| body a { |
| position: absolute; |
| height: 100px; |
| width: 100px; |
| border: 1px solid black; |
| } |
| |
| #e1 { |
| left: 10px; |
| top: 210px; |
| } |
| |
| #e2 { |
| left: 120px; |
| top: 250px; |
| } |
| |
| #e3 { |
| left: 250px; |
| top: 250px; |
| height: 120px; |
| } |
| </style> |
| |
| <p id="description">This test ensures that e2 is NOT below e1 and e3 is NOT below e2.</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> |
| </div> |
| |
| <script src="../../resources/testharness.js"></script> |
| <script src="../../resources/testharnessreport.js"></script> |
| <script src="resources/snav-testharness.js"></script> |
| <script type="application/javascript"> |
| var resultMap = [ |
| ["Down", "e1"], |
| ["Right", "e2"], |
| ["Down", "e2"], |
| ["Right", "e3"], |
| ["Up", "e3"], |
| ["Left", "e2"], |
| ["Up", "e2"], |
| ["Left", "e1"] |
| ]; |
| |
| // starting the test itself: get to a known place. |
| document.getElementById("e1").focus(); |
| snav.assertFocusMoves(resultMap); |
| </script> |