OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../../resources/js-test.js"></script> | 2 <script src="../../resources/js-test.js"></script> |
3 <script> | 3 <script> |
4 var numScrolls; | 4 var numScrolls; |
5 var pageHeight = 2000; | 5 var pageHeight = 2000; |
6 var pageWidth = 2000; | 6 var pageWidth = 2000; |
7 | 7 |
8 function reset() | 8 function reset() |
9 { | 9 { |
10 window.scrollTo(0, 0); | 10 window.scrollTo(0, 0); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 function runTest() | 103 function runTest() |
104 { | 104 { |
105 description( | 105 description( |
106 'Test that keyboard scrolling while the page is scaled scrolls ' + | 106 'Test that keyboard scrolling while the page is scaled scrolls ' + |
107 'both viewports. To test manually, pinch zoom into the page and ' + | 107 'both viewports. To test manually, pinch zoom into the page and ' + |
108 'use the arrow keys, page up/down, home/end to scroll the page. ' + | 108 'use the arrow keys, page up/down, home/end to scroll the page. ' + |
109 'You should be able to reach the end of the page bounds (i.e. ' + | 109 'You should be able to reach the end of the page bounds (i.e. ' + |
110 'scroll to see the divs at the bounds.)'); | 110 'scroll to see the divs at the bounds.)'); |
111 | 111 |
112 if (window.eventSender && window.internals) { | 112 if (window.eventSender && window.internals) { |
| 113 internals.settings.setScrollAnimatorEnabled(false); |
113 reset(); | 114 reset(); |
114 debug('Testing arrow keys:'); | 115 debug('Testing arrow keys:'); |
115 testArrowKeys(); | 116 testArrowKeys(); |
116 | 117 |
117 reset(); | 118 reset(); |
118 debug(''); | 119 debug(''); |
119 debug('Testing home and end keys:'); | 120 debug('Testing home and end keys:'); |
120 testHomeEnd(); | 121 testHomeEnd(); |
121 | 122 |
122 reset(); | 123 reset(); |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 left: 1800px; | 184 left: 1800px; |
184 } | 185 } |
185 </style> | 186 </style> |
186 <p id="description" style="width: 800px"></p> | 187 <p id="description" style="width: 800px"></p> |
187 <p id="console" style="width: 800px"></p> | 188 <p id="console" style="width: 800px"></p> |
188 <div class="top">Top of page</div> | 189 <div class="top">Top of page</div> |
189 <div class="bottom">Bottom of page</div> | 190 <div class="bottom">Bottom of page</div> |
190 <div class="left">Left of page</div> | 191 <div class="left">Left of page</div> |
191 <div class="right">Right of page</div> | 192 <div class="right">Right of page</div> |
192 <div class="middle">Middle of page</div> | 193 <div class="middle">Middle of page</div> |
OLD | NEW |