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

Side by Side Diff: LayoutTests/rubberbanding/scroll-bounce-fix.html

Issue 891523002: ScrollTopLeftInterop should not be marked experimental (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: updates Created 5 years, 10 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head><title>Tests that a momentum scroll (i.e. a fling) doesn't jump vertically </title></head> 3 <head><title>Tests that a momentum scroll (i.e. a fling) doesn't jump vertically </title></head>
4 <body> 4 <body>
5 <div id="box" style="height:800px; background: red; border:2px solid black; widt h:100%"></div> 5 <div id="box" style="height:800px; background: red; border:2px solid black; widt h:100%"></div>
6 <div id="info">This test requires DRT.</div> 6 <div id="info">This test requires DRT.</div>
7 <script> 7 <script>
8 if (window.internals) { 8 if (window.internals) {
9 document.getElementById('info').style.visibility = 'hidden'; 9 document.getElementById('info').style.visibility = 'hidden';
10 internals.settings.setMockScrollbarsEnabled(false); 10 internals.settings.setMockScrollbarsEnabled(false);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 // Queue the first event for replay. 68 // Queue the first event for replay.
69 queueTimeout(0); 69 queueTimeout(0);
70 70
71 // The ScrollElasticityController receives callbacks every 16ms, and ani mates the release effect of the rubber-band. Wait for 2 seconds to give the anim ation time to settle. 71 // The ScrollElasticityController receives callbacks every 16ms, and ani mates the release effect of the rubber-band. Wait for 2 seconds to give the anim ation time to settle.
72 testRunner.waitUntilDone(); 72 testRunner.waitUntilDone();
73 setTimeout(function() { 73 setTimeout(function() {
74 document.getElementById('box').style.background = 'green'; 74 document.getElementById('box').style.background = 'green';
75 // The left margin should have rebounded back to 0. 75 // The left margin should have rebounded back to 0.
76 if (document.documentElement.scrollLeft != 0) { 76 if (document.body.scrollLeft != 0) {
77 document.getElementById('box').style.background = 'yellow'; 77 document.getElementById('box').style.background = 'yellow';
78 } 78 }
79 // The content should be scrolled to the bottom. 79 // The content should be scrolled to the bottom.
80 var expectedScrollTop = document.documentElement.scrollHeight - docu ment.documentElement.clientHeight; 80 var expectedScrollTop = document.documentElement.scrollHeight - docu ment.documentElement.clientHeight;
81 if (document.documentElement.scrollTop != expectedScrollTop) { 81 if (document.body.scrollTop != expectedScrollTop) {
82 document.getElementById('box').style.background = 'yellow'; 82 document.getElementById('box').style.background = 'yellow';
83 } 83 }
84 testRunner.notifyDone(); 84 testRunner.notifyDone();
85 }, 2000); 85 }, 2000);
86 } 86 }
87 </script> 87 </script>
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/navigation/resources/frame-with-anchor-same-origin.html ('k') | Source/core/testing/InternalSettings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698