提交 2a6d70d4 编写于 作者: 张磊

更新transition-end测试例

上级 a68a94bf
......@@ -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.
先完成此消息的编辑!
想要评论请 注册