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

Unified Diff: LayoutTests/fast/scroll-behavior/resources/scroll-behavior-test.js

Issue 782793002: Update Element API for CSSOM smooth scrolling to match the spec (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased 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/resources/scroll-behavior-test.js
diff --git a/LayoutTests/fast/scroll-behavior/resources/scroll-behavior-test.js b/LayoutTests/fast/scroll-behavior/resources/scroll-behavior-test.js
index f72f7ab3aa468f775f0eb8abb779f19075465c21..6ed5b3b7fc899698964eab9f7641049b8a608a91 100644
--- a/LayoutTests/fast/scroll-behavior/resources/scroll-behavior-test.js
+++ b/LayoutTests/fast/scroll-behavior/resources/scroll-behavior-test.js
@@ -36,8 +36,7 @@ ScrollBehaviorTest.prototype.scrollListener = function(testCase) {
// Wait for an intermediate frame, then instant-scroll to the end state.
if ((this.scrollElement.scrollLeft != testCase.startX || this.scrollElement.scrollTop != testCase.startY) &&
(this.scrollElement.scrollLeft != testCase.endX || this.scrollElement.scrollTop != testCase.endY)) {
- this.scrollElement.scrollLeft = {x: testCase.endX, behavior: "instant"};
- this.scrollElement.scrollTop = {y: testCase.endY, behavior: "instant"};
+ this.scrollElement.scrollTo({left: testCase.endX, top: testCase.endY, behavior: "instant"});
this.testCaseComplete();
}
};

Powered by Google App Engine
This is Rietveld 408576698