From cbd859f7f8048ef11e5632adbf81206f877a6fe8 Mon Sep 17 00:00:00 2001 From: shutao Date: Mon, 23 Sep 2024 18:25:45 +0800 Subject: [PATCH] =?UTF-8?q?update=20list-view.test.js=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/list-view/list-view.test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/component/list-view/list-view.test.js b/pages/component/list-view/list-view.test.js index cd66a837..07525b2c 100644 --- a/pages/component/list-view/list-view.test.js +++ b/pages/component/list-view/list-view.test.js @@ -45,7 +45,8 @@ describe('component-native-list-view', () => { expect([300, 299.8095]).toContain(scrollDetail.scrollTop); expect(scrollDetail.scrollHeight).toBeGreaterThan(0) expect(scrollDetail.scrollWidth).toBeGreaterThan(0) - expect(scrollDetail.deltaX).toBe(0) + expect(scrollDetail.deltaX).toBe(0) + //此处可判断安卓issues:9121的问题 expect([300, 299.8095]).toContain(scrollDetail.deltaY); expect(await page.data('isScrollTest')).toBe('scroll:Success') }) @@ -160,5 +161,5 @@ describe('component-native-list-view', () => { console.log("check_scroll_into_view_left--"+scrollLeft) await page.callMethod('item_change_size_enum', 0) expect(scrollLeft-1080).toBeGreaterThanOrEqual(0) - }) + }) }) -- GitLab