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

Unified Diff: LayoutTests/fast/scroll-behavior/main-frame-interrupted-scroll.html

Issue 774203003: Update Window API for CSSOM smooth scrolling to match the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update expected results Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/scroll-behavior/main-frame-interrupted-scroll.html
diff --git a/LayoutTests/fast/scroll-behavior/main-frame-interrupted-scroll.html b/LayoutTests/fast/scroll-behavior/main-frame-interrupted-scroll.html
index eacba09ec28246e95fa8e34e9fe962e503c1a6d3..063ad00fa24eb5d6554dc77072630950f385e348 100644
--- a/LayoutTests/fast/scroll-behavior/main-frame-interrupted-scroll.html
+++ b/LayoutTests/fast/scroll-behavior/main-frame-interrupted-scroll.html
@@ -13,8 +13,7 @@
<script src="resources/scroll-interruption-test.js"></script>
<script type="text/javascript">
function jsScroll(y) {
- var currentX = document.documentElement.scrollTop;
- window.scrollTo(currentX, y, {behavior: 'smooth'});
+ window.scrollTo({top: y, behavior: 'smooth'});
}
function doTest() {

Powered by Google App Engine
This is Rietveld 408576698