提交 d16e7bdd 编写于 作者: T theniceangel

test(image-preview): get scroll.enabled in nextTick

上级 74210aa0
......@@ -205,8 +205,12 @@ describe('ImagePreview', () => {
// move cb
}, () => {
// end cb
expect(itemScroll.enabled)
// in PhantomJS, enabled becomes false in the nextTick
// but becomes false in the same tick in safari
vm.$nextTick(() => {
expect(itemScroll.enabled)
.to.be.false
})
expect(slideScroll.enabled)
.to.be.true
setTimeout(() => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册