提交 f7d17dd0 编写于 作者: 张磊

更新transition-end测试例

上级 697e6576
......@@ -11,5 +11,10 @@ describe('transition event', () => {
await page.callMethod('switchBtn')
await page.waitFor(3000)
expect(await page.data("onTransitionEndTriggr")).toBe(true)
await page.callMethod('switchBtn')
await page.waitFor(200)
await page.callMethod('switchBtn')
await page.waitFor(3000)
expect(await page.data("onTransitionEndTriggr")).toBe(true)
});
});
......@@ -35,6 +35,7 @@
} else {
this.isStart = false
this.times = 0
this.onTransitionEndTriggr = false
this.buttonValue = "开启图片旋转"
this.element!.style.setProperty('transform', 'rotate(' + this.times * 360 + 'deg)')
this.element!.style.setProperty('transition-duration', '0ms')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册