Adjust the unit tests for revision 197/bug 714717 (Optimizing some cubic beziers away). The behavior of the unit test checking for "c<nonzero> <nonzero> <zero>" being removed is now correct again.

This commit is contained in:
Louis Simard 2011-02-09 16:11:33 -05:00
parent 04d72454c5
commit 2b68c7ed37
2 changed files with 3 additions and 3 deletions

View file

@ -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):