Add marker-start, marker-mid, marker-end to list of SVG properties that get converted to attributes

This commit is contained in:
Jeff Schiller 2010-07-11 22:48:40 -07:00
parent 3fc0877b7c
commit 5f8139a6e3
4 changed files with 25 additions and 1 deletions

View file

@ -1136,6 +1136,15 @@ class ShortenIDsInStyleCDATA(unittest.TestCase):
self.assertEquals(docStr.find('somethingreallylong'), -1,
'Did not shorten IDs in the internal stylesheet')
class StyleToAttr(unittest.TestCase):
def runTest(self):
doc = scour.scourXmlFile('unittests/style-to-attr.svg')
line = doc.getElementsByTagName('line')[0]
self.assertEquals(line.getAttribute('stroke'), '#000')
self.assertEquals(line.getAttribute('marker-start'), 'url(#m)')
self.assertEquals(line.getAttribute('marker-mid'), 'url(#m)')
self.assertEquals(line.getAttribute('marker-end'), 'url(#m)')
# TODO: write tests for --enable-viewboxing
# TODO; write a test for embedding rasters
# TODO: write a test for --disable-embed-rasters