diff --git a/pages/component/scroll-view/scroll-view-props.test.js b/pages/component/scroll-view/scroll-view-props.test.js index 34990810078e4946dc4d1dd78288a97ba863f010..68b9b83feb42de7c1cb1d676419deb67b25296b8 100644 --- a/pages/component/scroll-view/scroll-view-props.test.js +++ b/pages/component/scroll-view/scroll-view-props.test.js @@ -42,7 +42,7 @@ describe('component-native-scroll-view', () => { await page.setData({ scrollIntoView: "" }) - expect(scrollTop-690).toBeGreaterThanOrEqual(0) + expect(scrollTop-570).toBeGreaterThanOrEqual(0) }) //检测横向可滚动区域 @@ -79,7 +79,7 @@ describe('component-native-scroll-view', () => { await page.setData({ scrollIntoView: "" }) - expect(scrollLeft-1080).toBeGreaterThanOrEqual(0) + expect(scrollLeft-930).toBeGreaterThanOrEqual(0) }) });