提交 46b02b07 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新getWindowInfo、getSystemInfo自动化测试用例

上级 89ee5aad
......@@ -56,6 +56,13 @@ describe('ExtApi-GetSystemInfo', () => {
expect(['light', 'dark', 'auto']).toContain(value);
}
}
if (process.env.uniTestPlatformInfo.startsWith('android')) {
if (res.safeAreaInsets.bottom > 0) {
expect(res.safeAreaInsets.top + 44 + res.windowHeight).toBe(res.screenHeight);
} else {
expect(res.safeAreaInsets.top + 44 + res.windowHeight).toBe(res.safeArea.bottom);
}
}
});
it('Check GetSystemInfoSync required properties', async () => {
for (let i = 0; i < requiredProperties.length; i++) {
......
......@@ -23,6 +23,13 @@ describe('ExtApi-GetWindowInfo', () => {
if (numberProperties.indexOf(key) != -1) {
expect(value).toBeGreaterThanOrEqual(0);
}
}
if (process.env.uniTestPlatformInfo.startsWith('android')) {
if (res.safeAreaInsets.bottom > 0) {
expect(res.safeAreaInsets.top + 44 + res.windowHeight).toBe(res.screenHeight);
} else {
expect(res.safeAreaInsets.top + 44 + res.windowHeight).toBe(res.safeArea.bottom);
}
}
});
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册