From 31bd7c5ee347d1faa698b9277579fb0dde84abf0 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Thu, 20 Jun 2024 19:05:47 +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 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/pages/component/web-view/web-view.test.js b/pages/component/web-view/web-view.test.js index 1155a6ac..d6078f6c 100644 --- a/pages/component/web-view/web-view.test.js +++ b/pages/component/web-view/web-view.test.js @@ -12,6 +12,28 @@ describe('component-native-web-view', () => { expect(await page.data('loadError')).toBe(false) }); + it('test attr webview-styles', async () => { + await page.setData({ + webview_styles: { + progress: { + color: '#FF0' + } + } + }); + await page.waitFor(100); + await page.callMethod('reload'); + await page.waitFor(100); + await page.setData({ + webview_styles: { + progress: { + color: 'yellow' + } + } + }); + await page.waitFor(100); + await page.callMethod('reload'); + }); + it('test event loading load', async () => { await page.setData({ autoTest: true -- GitLab