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

Side by Side Diff: LayoutTests/fast/spatial-navigation/snav-unit-overflow-and-scroll-in-direction.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tdresser cr feedback Created 5 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <!-- 2 <!--
3 This test ensures the correctness the following Spatial Navigation 3 This test ensures the correctness the following Spatial Navigation
4 (SNav) algorithm features. 4 (SNav) algorithm features.
5 5
6 1) There is no unit overflow in the Spatial Navigation algorithm while 6 1) There is no unit overflow in the Spatial Navigation algorithm while
7 calculating the best node candidate to move focus to. To test that this 7 calculating the best node candidate to move focus to. To test that this
8 page positions some elements 10000000 pixels far from each other (distanc e 8 page positions some elements 10000000 pixels far from each other (distanc e
9 that can considered large enough for most of the Web Pages on the 9 that can considered large enough for most of the Web Pages on the
10 Internet). 10 Internet).
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 function step1() 57 function step1()
58 { 58 {
59 // Actions in 'resultMap1' should keep the focus in the currently 59 // Actions in 'resultMap1' should keep the focus in the currently
60 // focused element ('start') once the best candidate ('end') is not 60 // focused element ('start') once the best candidate ('end') is not
61 // visible in current viewport. 61 // visible in current viewport.
62 initTest(resultMap1, step1Completed); 62 initTest(resultMap1, step1Completed);
63 } 63 }
64 64
65 function step2() 65 function step2()
66 { 66 {
67 shouldBeTrue(String(document.body.scrollTop != 0)); 67 shouldBeTrue(String(document.scrollingElement.scrollTop != 0));
68 68
69 // Then it scrolls down to the end of the page ... 69 // Then it scrolls down to the end of the page ...
70 if (window.eventSender) 70 if (window.eventSender)
71 eventSender.keyDown("end"); 71 eventSender.keyDown("end");
72 72
73 // And 'resultMap2' re-tries to move focus down. 73 // And 'resultMap2' re-tries to move focus down.
74 initTest(resultMap2, step2Completed); 74 initTest(resultMap2, step2Completed);
75 } 75 }
76 76
77 function step1Completed() 77 function step1Completed()
(...skipping 12 matching lines...) Expand all
90 </script> 90 </script>
91 </head> 91 </head>
92 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> 92 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
93 <a id="start" href="a">Start</a> 93 <a id="start" href="a">Start</a>
94 <div style='margin-top:100000000px'> 94 <div style='margin-top:100000000px'>
95 <a id="end" href="a">End</a> 95 <a id="end" href="a">End</a>
96 </div> 96 </div>
97 <div id="console"></div> 97 <div id="console"></div>
98 </body> 98 </body>
99 </html> 99 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698