From a4208d70bbce6fe9079744427c27eb17d3776b4f Mon Sep 17 00:00:00 2001 From: shutao Date: Thu, 21 Sep 2023 12:35:40 +0800 Subject: [PATCH] update scroll-view-props.test.js --- pages/component/scroll-view/scroll-view-props.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/component/scroll-view/scroll-view-props.test.js b/pages/component/scroll-view/scroll-view-props.test.js index 34990810..68b9b83f 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) }) }); -- GitLab