From d39046b3f07933fa85244ed55531ec89ebc698f8 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Tue, 24 Sep 2024 17:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0web-view=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/web-view/web-view.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/component/web-view/web-view.test.js b/pages/component/web-view/web-view.test.js index 55946ec8..b20b7f5a 100644 --- a/pages/component/web-view/web-view.test.js +++ b/pages/component/web-view/web-view.test.js @@ -42,7 +42,7 @@ describe('component-native-web-view', () => { const info = await page.callMethod('getWindowInfo'); await program.tap({ x: 1, - y: (info.statusBarHeight + 44) * info.pixelRatio + 1 + y: info.statusBarHeight + 44 + 1 }); start = Date.now(); await page.waitFor(async () => { @@ -66,7 +66,7 @@ describe('component-native-web-view', () => { await page.waitFor(100); await program.tap({ x: 10, - y: (info.statusBarHeight + 44) * info.pixelRatio + 10 + y: info.statusBarHeight + 44 + 10 }); start = Date.now(); await page.waitFor(async () => { -- GitLab