提交 31bd7c5e 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新web-view自动化测试用例

上级 d785dbae
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册