提交 923ebb5b 编写于 作者: H hdx

nodes-info: 修复单元测试在 Android 6上 判定左侧距离值偏差过大的问题

上级 d73765eb
......@@ -39,7 +39,7 @@ describe('nodes-info', () => {
expect(Math.round(nodeInfo1.height)).toBe(RECT_HEIGHT)
const nodeInfo2 = data.nodeInfoList[1]
expect(nodeInfo2.left > 200).toBe(true)
expect(nodeInfo2.left > 180).toBe(true)
expect(nodeInfo2.top > 220).toBe(true)
expect(Math.round(nodeInfo2.width)).toBe(RECT_WIDTH)
expect(Math.round(nodeInfo2.height)).toBe(RECT_HEIGHT)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册