| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <!-- | 2 <!-- |
| 3 This test ensures the content overflow traversal correctness of spatial navi
gation: | 3 This test ensures the content overflow traversal correctness of spatial navi
gation: |
| 4 if an element if clipped overflow in a scrollable container (e.g. <div>), | 4 if an element if clipped overflow in a scrollable container (e.g. <div>), |
| 5 scroll-in-direction should happen in the container box, not on the outer vie
w. | 5 scroll-in-direction should happen in the container box, not on the outer vie
w. |
| 6 | 6 |
| 7 * Pre-conditions: | 7 * Pre-conditions: |
| 8 1) DRT support for spatial navigation enable/disable. | 8 1) DRT support for spatial navigation enable/disable. |
| 9 | 9 |
| 10 * Navigation steps: | 10 * Navigation steps: |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 { | 55 { |
| 56 shouldBeTrue(String(document.getElementById("div").scrollTop != 0)); | 56 shouldBeTrue(String(document.getElementById("div").scrollTop != 0)); |
| 57 | 57 |
| 58 if (window.testRunner) | 58 if (window.testRunner) |
| 59 testRunner.notifyDone(); | 59 testRunner.notifyDone(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 window.onload = runTest; | 62 window.onload = runTest; |
| 63 | 63 |
| 64 </script> | 64 </script> |
| 65 <script src="js/resources/js-test-post.js"></script> | |
| 66 </head> | 65 </head> |
| 67 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> | 66 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> |
| 68 <p>That is is a normal <a id="start" href="a">link</a>.</p> | 67 <p>That is is a normal <a id="start" href="a">link</a>.</p> |
| 69 <div class="scroll" id="div"> | 68 <div class="scroll" id="div"> |
| 70 <p>This is a scrollable Div created with the CSS property overflow.</p> | 69 <p>This is a scrollable Div created with the CSS property overflow.</p> |
| 71 <br><br><br><br><br><br><br><br> | 70 <br><br><br><br><br><br><br><br> |
| 72 <p> ... and here we have a clipped overflow <a id="1" href="a">link</a>.</
p> | 71 <p> ... and here we have a clipped overflow <a id="1" href="a">link</a>.</
p> |
| 73 </div> | 72 </div> |
| 74 <p>And this is another normal <a id="2" href="a">link_2</a>.</p> | 73 <p>And this is another normal <a id="2" href="a">link_2</a>.</p> |
| 75 <div id="console"></div> | 74 <div id="console"></div> |
| 76 </body> | 75 </body> |
| 77 </html> | 76 </html> |
| OLD | NEW |