Fixed scour to handle entities in url references

This commit is contained in:
JSCHILL1 2009-05-17 23:07:22 -05:00
parent a03439573e
commit 9375bd69a9
9 changed files with 1973 additions and 13 deletions

View file

@ -537,6 +537,11 @@ class TranslateLongHexColorIntoShortHex(unittest.TestCase):
self.assertEquals( elem.getAttribute('fill'), '#FFF',
'Not converting long hex color into short hex')
class AllowQuotEntitiesInUrl(unittest.TestCase):
def runTest(self):
grads = scour.scourXmlFile('unittests/quot-in-url.svg').getElementsByTagNameNS(SVGNS, 'linearGradient')
self.assertEquals( len(grads), 1,
'Removed referenced gradient when " was in the url')
if __name__ == '__main__':
unittest.main()