Fix path parsing for all path subcommand types. Remove unnecessary whitespace.
This commit is contained in:
parent
d6d4d3d027
commit
90e3ce1a02
4 changed files with 80 additions and 34 deletions
|
|
@ -434,14 +434,7 @@ class RemoveDelimiterBeforeNegativeCoordsInPath(unittest.TestCase):
|
|||
doc = scour.scourXmlFile('unittests/path-truncate-zeroes.svg')
|
||||
path = doc.getElementsByTagNameNS(SVGNS, 'path')[0].getAttribute('d')
|
||||
self.assertEquals(path[4], '-',
|
||||
'Delimiters not removed before negative coordinate in path data' )
|
||||
|
||||
#class RemoveUnreferencedFonts(unittest.TestCase):
|
||||
# def runTest(self):
|
||||
# doc = scour.scourXmlFile('unittests/unreferenced-font.svg')
|
||||
# fonts = doc.documentElement.getElementsByTagNameNS('http://www.w3.org/2000/svg','font')
|
||||
# self.assertEquals(len(fonts), 0,
|
||||
# "Font was not removed from <defs>" )
|
||||
'Delimiters not removed before negative coordinates in path data' )
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue