Index: LayoutTests/fast/scroll-behavior/resources/scroll-interruption-test.js |
diff --git a/LayoutTests/fast/scroll-behavior/resources/scroll-interruption-test.js b/LayoutTests/fast/scroll-behavior/resources/scroll-interruption-test.js |
index 09fa4c9060d75387cfc4ae686ab210e00f69ddf7..26bc88f291fecd3c783d4331edffc92d5e80d894 100644 |
--- a/LayoutTests/fast/scroll-behavior/resources/scroll-interruption-test.js |
+++ b/LayoutTests/fast/scroll-behavior/resources/scroll-interruption-test.js |
@@ -75,12 +75,6 @@ SmoothScrollInterruptionTest.prototype.waitForSmoothScrollStart = function() { |
return; |
} |
- var scrollElement = this.scrollElement; |
- var scrollEndPoint = this.scrollEndPoint; |
- this.asyncTest.step(function() { |
- assert_not_equals(scrollElement.scrollTop, scrollEndPoint); |
- }); |
- |
var testCase = this.testCases[this.currentTestCase]; |
testCase.interruptSmoothScroll(this); |
window.requestAnimationFrame(testCase.verifyScrollInterrupted.bind(testCase, this, this.testCaseComplete.bind(this))); |
@@ -147,7 +141,7 @@ function interruptWithSmoothScroll(smoothScrollTest) { |
function verifyScrollInterruptedBySmoothScroll(smoothScrollTest, verificationComplete) { |
var currentPosition = smoothScrollTest.scrollElement.scrollTop; |
- if (currentPosition < this.scrollInterruptionPoint && currentPosition > smoothScrollTest.scrollNewEndpoint) { |
+ if (currentPosition < this.scrollInterruptionPoint && currentPosition >= smoothScrollTest.scrollNewEndpoint) { |
verificationComplete(); |
} else { |
window.requestAnimationFrame(this.verifyScrollInterrupted.bind(this, smoothScrollTest, verificationComplete)); |