From 2b68c7ed374e8aa3d4950d6e7108db353545f449 Mon Sep 17 00:00:00 2001 From: Louis Simard Date: Wed, 9 Feb 2011 16:11:33 -0500 Subject: [PATCH] Adjust the unit tests for revision 197/bug 714717 (Optimizing some cubic beziers away). The behavior of the unit test checking for "c " being removed is now correct again. --- testscour.py | 2 +- unittests/collapse-same-path-points.svg | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/testscour.py b/testscour.py index 4de1285..21ffa74 100755 --- a/testscour.py +++ b/testscour.py @@ -741,7 +741,7 @@ class RereferenceForRadialGradient(unittest.TestCase): class CollapseSamePathPoints(unittest.TestCase): def runTest(self): p = scour.scourXmlFile('unittests/collapse-same-path-points.svg').getElementsByTagNameNS(SVGNS, 'path')[0]; - self.assertEquals(p.getAttribute('d'), "m100 100l100.12 100.12z", + self.assertEquals(p.getAttribute('d'), "m100 100l100.12 100.12c14.88 4.88-15.12-5.12 0 0z", 'Did not collapse same path points') class ScourUnitlessLengths(unittest.TestCase): diff --git a/unittests/collapse-same-path-points.svg b/unittests/collapse-same-path-points.svg index a31c61d..345bdd6 100644 --- a/unittests/collapse-same-path-points.svg +++ b/unittests/collapse-same-path-points.svg @@ -1,4 +1,4 @@ - - + + \ No newline at end of file