Prevent scour from trying to remove a duplicate gradient more than once

This commit is contained in:
JSCHILL1 2009-08-01 11:59:54 -05:00
parent b119af0499
commit 46f86a0978
4 changed files with 13 additions and 3 deletions

View file

@ -677,6 +677,8 @@ class RereferenceForLinearGradient(unittest.TestCase):
rects = svgdoc.getElementsByTagNameNS(SVGNS, 'rect')
self.assertEquals(rects[0].getAttribute('fill'), rects[1].getAttribute('stroke'),
'Rect not changed after removing duplicate linear gradient')
self.assertEquals(rects[0].getAttribute('fill'), rects[4].getAttribute('fill'),
'Rect not changed after removing duplicate linear gradient')
class RemoveDuplicateRadialGradients(unittest.TestCase):
def runTest(self):