提交 0441524a 编写于 作者: lizhongyi_'s avatar lizhongyi_

调整list-view测试例

上级 af63a882
...@@ -6,15 +6,6 @@ describe('component-native-list-view', () => { ...@@ -6,15 +6,6 @@ describe('component-native-list-view', () => {
await page.waitFor(600) await page.waitFor(600)
}) })
//检测竖向可滚动区域
it('check_scroll_height', async () => {
await page.callMethod('change_scroll_y_boolean', true)
await page.callMethod('change_scroll_x_boolean', false)
await page.waitFor(600)
const value = await page.callMethod('check_scroll_height')
expect(value).toBe(true)
})
//检测竖向scrolltop属性赋值 //检测竖向scrolltop属性赋值
it('check_scroll_top', async () => { it('check_scroll_top', async () => {
await page.callMethod('confirm_scroll_top_input', 600) await page.callMethod('confirm_scroll_top_input', 600)
...@@ -44,10 +35,20 @@ describe('component-native-list-view', () => { ...@@ -44,10 +35,20 @@ describe('component-native-list-view', () => {
if (process.env.uniTestPlatformInfo.indexOf('web') > -1) { if (process.env.uniTestPlatformInfo.indexOf('web') > -1) {
return return
} }
if(process.env.uniTestPlatformInfo.startsWith('IOS_SIMULATOR')) {
if(process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) {
return return
} }
//检测竖向可滚动区域
it('check_scroll_height', async () => {
await page.callMethod('change_scroll_y_boolean', true)
await page.callMethod('change_scroll_x_boolean', false)
await page.waitFor(600)
const value = await page.callMethod('check_scroll_height')
expect(value).toBe(true)
})
//检测横向可滚动区域 备注:iOS不支持list-view横向滚动 //检测横向可滚动区域 备注:iOS不支持list-view横向滚动
it('check_scroll_width', async () => { it('check_scroll_width', async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册