A few more unit tests for removing stroke properties
This commit is contained in:
parent
d09903fe39
commit
64ee621aa6
3 changed files with 22 additions and 5 deletions
15
testscour.py
15
testscour.py
|
|
@ -256,6 +256,21 @@ class RemoveStrokeLinejoinWhenStrokeTransparent(unittest.TestCase):
|
|||
self.assertEquals(doc.getElementsByTagNameNS(SVGNS, 'path')[0].getAttribute('stroke-linejoin'), '',
|
||||
"stroke-linejoin attribute not emptied" )
|
||||
|
||||
class RemoveStrokeDasharrayWhenStrokeTransparent(unittest.TestCase):
|
||||
def runTest(self):
|
||||
doc = scour.scourXmlFile('unittests/stroke-linejoin.svg')
|
||||
self.assertEquals(doc.getElementsByTagNameNS(SVGNS, 'path')[0].getAttribute('stroke-dasharray'), '',
|
||||
"stroke-dasharray attribute not emptied" )
|
||||
|
||||
class RemoveStrokeDashoffsetWhenStrokeTransparent(unittest.TestCase):
|
||||
def runTest(self):
|
||||
doc = scour.scourXmlFile('unittests/stroke-linejoin.svg')
|
||||
self.assertEquals(doc.getElementsByTagNameNS(SVGNS, 'path')[0].getAttribute('stroke-dashoffset'), '',
|
||||
"stroke-dashoffset attribute not emptied" )
|
||||
|
||||
# TODO : add in duplicate tests for when the stroke-width is 0
|
||||
# TODO : add in duplicate tests for when the stroke is none
|
||||
|
||||
#class RemoveUnreferencedFonts(unittest.TestCase):
|
||||
# def runTest(self):
|
||||
# doc = scour.scourXmlFile('unittests/unreferenced-font.svg')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue