* [test] Update close to in lineHeight
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/347180c2 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/347180c2 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/347180c2 Branch: refs/heads/0.12-dev Commit: 347180c262901e4e12c1fe7db01f60f0a45bbb79 Parents: 758ee8e Author: YorkShen <shenyua...@gmail.com> Authored: Tue Apr 18 17:53:43 2017 +0800 Committer: YorkShen <shenyua...@gmail.com> Committed: Tue Apr 18 19:48:52 2017 +0800 ---------------------------------------------------------------------- test/scripts/components/text.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/347180c2/test/scripts/components/text.test.js ---------------------------------------------------------------------- diff --git a/test/scripts/components/text.test.js b/test/scripts/components/text.test.js index 36ea91c..2924c7c 100644 --- a/test/scripts/components/text.test.js +++ b/test/scripts/components/text.test.js @@ -50,7 +50,7 @@ describe('weex text', function () { console.log(rect) console.log(screenWidth) assert.equal(rect.width, screenWidth) - assert.equal(rect.height, Math.floor(2 * 32 * scaleFactor)) + assert.closeTo(rect.height, 32 * scaleFactor*2, 2) scroll(rect.height) }) })