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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/scrolling/keyboard-scroll-page-scale.html

Issue 1413493005: Update layout tests to work when smooth scrolling is enabled by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: worked on nit Created 5 years, 1 month 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
OLDNEW
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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698