diff --git a/pages/component/web-view/web-view.test.js b/pages/component/web-view/web-view.test.js index 1155a6acc1162395a1b39690b96a6ed472d3b9e1..d6078f6c797e2899562169a0507495279a881d9c 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