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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/scrolling/editor-command-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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 function runTest() 51 function runTest()
52 { 52 {
53 description( 53 description(
54 'Test that scrolling editor commands while pinch-zoomed scrolls ' + 54 'Test that scrolling editor commands while pinch-zoomed scrolls ' +
55 'both viewports. To test manually, pinch zoom into the page and ' + 55 'both viewports. To test manually, pinch zoom into the page and ' +
56 'use the arrow keys, page up/down, home/end to scroll the page. ' + 56 'use the arrow keys, page up/down, home/end to scroll the page. ' +
57 'You should be able to reach the end of the page bounds (i.e. ' + 57 'You should be able to reach the end of the page bounds (i.e. ' +
58 'scroll to see the divs at the bounds.)'); 58 'scroll to see the divs at the bounds.)');
59 59
60 if (window.internals) { 60 if (window.internals) {
61 internals.settings.setScrollAnimatorEnabled(false);
61 reset(); 62 reset();
62 debug(''); 63 debug('');
63 debug('Testing Document Scrolling:'); 64 debug('Testing Document Scrolling:');
64 testDocumentScroll(); 65 testDocumentScroll();
65 66
66 reset(); 67 reset();
67 debug(''); 68 debug('');
68 debug('Testing Page Scrolling:'); 69 debug('Testing Page Scrolling:');
69 testScroll('ScrollPageForward', 'ScrollPageBackward'); 70 testScroll('ScrollPageForward', 'ScrollPageBackward');
70 71
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 left: 1800px; 128 left: 1800px;
128 } 129 }
129 </style> 130 </style>
130 <p id="description" style="width: 800px"></p> 131 <p id="description" style="width: 800px"></p>
131 <p id="console" style="width: 800px"></p> 132 <p id="console" style="width: 800px"></p>
132 <div class="top">Top of page</div> 133 <div class="top">Top of page</div>
133 <div class="bottom">Bottom of page</div> 134 <div class="bottom">Bottom of page</div>
134 <div class="left">Left of page</div> 135 <div class="left">Left of page</div>
135 <div class="right">Right of page</div> 136 <div class="right">Right of page</div>
136 <div class="middle">Middle of page</div> 137 <div class="middle">Middle of page</div>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698