diff --git a/pages/component/web-view/web-view.test.js b/pages/component/web-view/web-view.test.js index 724c53a5cecd3a1e47c1ce6cc28782d020918a38..ef923afa638bf86751ebf86fd16adf98f43646e9 100644 --- a/pages/component/web-view/web-view.test.js +++ b/pages/component/web-view/web-view.test.js @@ -5,7 +5,8 @@ describe('component-native-web-view', () => { const isIOS = platformInfo.startsWith('ios') const isMP = platformInfo.startsWith('mp') const isWeb = platformInfo.startsWith('web') - const isHarmony = platformInfo.startsWith('harmony') + const isHarmony = platformInfo.startsWith('harmony') + const isAndroid = platformInfo.startsWith('android') if (isWeb || process.env.UNI_AUTOMATOR_APP_WEBVIEW) { it('web', async () => { @@ -124,6 +125,10 @@ describe('component-native-web-view', () => { }); it('test event contentheightchange', async () => { + if (!isAndroid && !isIOS) { + expect(1).toBe(1); + return; + } expect(await page.callMethod('getContentHeight')).toBeGreaterThan(0); start = Date.now(); await page.waitFor(async () => {