Fix bug with polygon point parsing. Fix bug 368716: tiny CSS parser to find referenced elements in style element

This commit is contained in:
JSCHILL1 2009-08-31 00:11:34 -05:00
parent d9e3e2436b
commit 7fcc125286
6 changed files with 159 additions and 35 deletions

View file

@ -915,7 +915,12 @@ class DoNotRemoveCommonAttributesOnParentIfAtLeastOneUsed(unittest.TestCase):
self.assertEquals( g.getAttribute('fill'), '#0F0',
'Used attributes on group were removed')
class DoNotRemoveGradientsWhenReferencedInStyleCss(unittest.TestCase):
def runTest(self):
grads = scour.scourXmlFile('unittests/css-reference.svg').getElementsByTagNameNS(SVGNS, 'linearGradient')
self.assertEquals( grads.length, 2,
'Gradients removed when referenced in CSS')
# TODO; write a test for embedding rasters
# TODO: write a test for --disable-embed-rasters
# TODO: write tests for --keep-editor-data