提交 2feae999 编写于 作者: shutao-dc's avatar shutao-dc

update scroll-view.test.js 适配web平台

上级 7bf1a6e6
...@@ -82,9 +82,9 @@ describe('component-native-scroll-view', () => { ...@@ -82,9 +82,9 @@ describe('component-native-scroll-view', () => {
it('通过UniElement.scrollBy检测scroll事件是否触发',async()=>{ it('通过UniElement.scrollBy检测scroll事件是否触发',async()=>{
await page.callMethod('setVerticalScrollBy', 120) await page.callMethod('setVerticalScrollBy', 120)
// await page.waitFor(600) await page.waitFor(600)
const scrollDetail = await page.data('scrollDetailTest') const scrollDetail = await page.data('scrollDetailTest')
console.log('setVerticalScrollBy scrollDetail:', scrollDetail) console.log('setVerticalScrollBy scrollDetail:', scrollDetail)
expect(scrollDetail.scrollTop).toBe(120) expect(scrollDetail.scrollTop).toBeGreaterThan(119)
}) })
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册