提交 43049e28 编写于 作者: lizhongyi_'s avatar lizhongyi_ 提交者: shutao-dc

调整webview部分测试例

上级 1fd8e87c
......@@ -89,11 +89,13 @@ describe('component-native-web-view', () => {
});
if(process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) {
expect(await page.data('eventLoading')).toEqual({
"tagName": "WEB-VIEW",
type: 'loading',
src: 'https://www.dcloud.io/'
});
}else {
expect(await page.data('eventLoading')).toEqual({
tagName: 'WEB-VIEW',
type: 'loading',
src: 'https://www.dcloud.io/'
});
......@@ -104,11 +106,13 @@ describe('component-native-web-view', () => {
});
if(process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) {
expect(await page.data('eventLoad')).toEqual({
tagName: "WEB-VIEW",
type: 'load',
src: 'https://www.dcloud.io/'
});
}else {
expect(await page.data('eventLoad')).toEqual({
tagName: 'WEB-VIEW',
type: 'load',
src: 'https://www.dcloud.io/'
});
......@@ -126,7 +130,8 @@ describe('component-native-web-view', () => {
await page.waitFor(async () => {
return (await page.data('eventError')) || (Date.now() - start > 5000);
});
expect(await page.data('eventError')).toEqual({
expect(await page.data('eventError')).toEqual({
tagName: 'WEB-VIEW',
type: 'error',
errCode: 100002,
errMsg: 'page error',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册