Fix Bug 519698: Do not collapse move commands together because they may have line segments
This commit is contained in:
parent
05e73f11c3
commit
9042bbae31
4 changed files with 27 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue