You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2014/12/30 12:39:18 UTC

git commit: [flex-tlf] [refs/heads/develop] - Fixed test to take rounding errors into account

Repository: flex-tlf
Updated Branches:
  refs/heads/develop b3bb56e50 -> dc9d693c6


Fixed test to take rounding errors into account


Project: http://git-wip-us.apache.org/repos/asf/flex-tlf/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-tlf/commit/dc9d693c
Tree: http://git-wip-us.apache.org/repos/asf/flex-tlf/tree/dc9d693c
Diff: http://git-wip-us.apache.org/repos/asf/flex-tlf/diff/dc9d693c

Branch: refs/heads/develop
Commit: dc9d693c629f9015572373c910d4fbb191661abf
Parents: b3bb56e
Author: Harbs <ha...@in-tools.com>
Authored: Tue Dec 30 13:39:12 2014 +0200
Committer: Harbs <ha...@in-tools.com>
Committed: Tue Dec 30 13:39:12 2014 +0200

----------------------------------------------------------------------
 automation_tests/src/UnitTest/Tests/ContainerAttributeTest.as | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-tlf/blob/dc9d693c/automation_tests/src/UnitTest/Tests/ContainerAttributeTest.as
----------------------------------------------------------------------
diff --git a/automation_tests/src/UnitTest/Tests/ContainerAttributeTest.as b/automation_tests/src/UnitTest/Tests/ContainerAttributeTest.as
index aee66a3..e1ecb96 100644
--- a/automation_tests/src/UnitTest/Tests/ContainerAttributeTest.as
+++ b/automation_tests/src/UnitTest/Tests/ContainerAttributeTest.as
@@ -1801,7 +1801,7 @@ package UnitTest.Tests
             var textFlowLine:TextFlowLine = SelManager.textFlow.flowComposer.getLineAt(2);
             var canvas:Canvas = Canvas(testApp.getDisplayObject());
             var textLineBounds:Rectangle = textFlowLine.getTextLine().getBounds(canvas);
-            assertTrue("Paragraph3's top value should be 87.55.", textLineBounds.top == 87.55);
+            assertTrue("Paragraph3's top value should be 87.55.", Math.abs(textLineBounds.top - 87.55) < 0.001);
         }
 
         //Fix bug 2869747  using TextFlow.flowComposer and ContainerController, displayed text is incorrectly masked