Fix Bug 519698: Do not collapse move commands together because they may have line segments

This commit is contained in:
JSCHILL1 2010-03-27 11:41:19 -05:00
parent 05e73f11c3
commit 9042bbae31
4 changed files with 27 additions and 8 deletions

View file

@ -1019,6 +1019,12 @@ class DoNotStripDoctype(unittest.TestCase):
self.assertEquals( doc.childNodes[1].nodeType, 10, 'Second node not a doctype')
self.assertEquals( doc.childNodes[2].nodeType, 1, 'Third node not the root node')
class PathImplicitLineWithMoveCommands(unittest.TestCase):
def runTest(self):
path = scour.scourXmlFile('unittests/path-implicit-line.svg').getElementsByTagNameNS(SVGNS, 'path')[0]
self.assertEquals( path.getAttribute('d'), "M100,100,100,200m200-100-200,0m200,100,0-100",
"Implicit line segments after move not preserved")
# TODO: write tests for --enable-viewboxing
# TODO; write a test for embedding rasters
# TODO: write a test for --disable-embed-rasters