From 937d3e90f66933607b138df1dc659ec70120b686 Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Mon, 18 Nov 2013 11:17:09 +0000 Subject: [PATCH] Bug 939534 - Follow-up to the follow-up to address review comments to address orange that caused (mark tests fuzzy). r=me --- content/svg/content/test/test_text.html | 2 +- content/svg/content/test/test_text_scaled.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/svg/content/test/test_text.html b/content/svg/content/test/test_text.html index 14ff53bca34d..ca03f2af3593 100644 --- a/content/svg/content/test/test_text.html +++ b/content/svg/content/test/test_text.html @@ -148,7 +148,7 @@ function runTest() is(text3.getEndPositionOfChar(12).y, 253, "text3 char 12 end offset"); ok(text3.getExtentOfChar(12).y < 253, "text3 char 12 extent y"); ok(ymost(text3.getExtentOfChar(12)) > 253, "text3 char 12 extent height"); - is(text3.getRotationOfChar(12), 180, "text3 char 12 rotation"); + isfuzzy(text3.getRotationOfChar(12), 180, 0.001, "text3 char 12 rotation"); p.x = text3.getExtentOfChar(12).x + 0.1; p.y = ymost(text3.getExtentOfChar(12)) - 0.1; is(text3.getCharNumAtPosition(p), 12, "text3 finding char 12"); diff --git a/content/svg/content/test/test_text_scaled.html b/content/svg/content/test/test_text_scaled.html index 5ac4db1b1364..deb3ae60b525 100644 --- a/content/svg/content/test/test_text_scaled.html +++ b/content/svg/content/test/test_text_scaled.html @@ -111,10 +111,10 @@ function runTest() // character 12 should be on the bottom side is(text2.getStartPositionOfChar(12).y, 860, "text2 char 12 start offset"); - is(text2.getEndPositionOfChar(12).y, 860, "text2 char 12 end offset"); + isfuzzy(text2.getEndPositionOfChar(12).y, 860, 0.001, "text2 char 12 end offset"); ok(text2.getExtentOfChar(12).y < 860, "text2 char 12 extent y"); ok(ymost(text2.getExtentOfChar(12)) > 860, "text2 char 12 extent height"); - is(text2.getRotationOfChar(12), 180, "text2 char 12 rotation"); + isfuzzy(text2.getRotationOfChar(12), 180, 0.001, "text2 char 12 rotation"); p.x = text2.getExtentOfChar(12).x + 0.1; p.y = ymost(text2.getExtentOfChar(12)) - 0.1; is(text2.getCharNumAtPosition(p), 12, "text2 finding char 12");