Remove empty m0,0 segments

This commit is contained in:
Jeff Schiller 2010-07-13 09:14:17 -07:00
parent 5f8139a6e3
commit b68f8483c7
3 changed files with 19 additions and 1 deletions

View file

@ -1144,6 +1144,12 @@ class StyleToAttr(unittest.TestCase):
self.assertEquals(line.getAttribute('marker-start'), 'url(#m)')
self.assertEquals(line.getAttribute('marker-mid'), 'url(#m)')
self.assertEquals(line.getAttribute('marker-end'), 'url(#m)')
class PathEmptyMove(unittest.TestCase):
def runTest(self):
doc = scour.scourXmlFile('unittests/path-empty-move.svg')
self.assertEquals(doc.getElementsByTagName('path')[0].getAttribute('d'), 'm100 100l200 100z');
self.assertEquals(doc.getElementsByTagName('path')[1].getAttribute('d'), 'm100 100v200l100 100z');
# TODO: write tests for --enable-viewboxing
# TODO; write a test for embedding rasters