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(); |
} |
}; |