Skip to content

Commit 69a4762

Browse files
committed
修改断言 模糊匹配 本地结果为65 模糊匹配为65+-5 review by songym
1 parent a14e922 commit 69a4762

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/common/commontypes/UtilSpec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ describe('Util', () =>{
339339
var text = "北京超图";
340340
var dom = document.createElement('div');
341341
var result=Util.getTextBounds(style,text,dom);
342-
expect(result.textWidth).toEqual(65);
342+
expect(result.textWidth).toBeGreaterThan(60);
343+
expect(result.textWidth).toBeLessThan(70);
343344
expect(result.textHeight).toEqual(18);
344345
});
345346

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy