提交 bd40ec2a 编写于 作者: H hdx

test: getBoundingClientRectSync 调整精度判断逻辑

上级 3a268548
......@@ -35,6 +35,6 @@ async function invokeGetBoundingClientRect(page, methodName, dataName) {
expect(Math.round(rectInfo.height)).toBe(RECT_HEIGHT)
expect(Math.round(rectInfo.left)).toBe(RECT_LEFT)
expect(Math.round(rectInfo.top) > 90).toBe(true)
expect(Math.round(rectInfo.right)).toBe(width - 15)
expect(width - 15 - Math.round(rectInfo.right) >= 0).toBe(true)
expect(Math.round(rectInfo.bottom) > 200).toBe(true)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册