Fix Bug 411062: typo of 'true'. Modify unit test to cover exercising the code. Update testscour.py for new indent_type option.

This commit is contained in:
JSCHILL1 2009-08-09 15:04:50 -05:00
parent e17d3b8526
commit 5f5c8a431d
3 changed files with 8 additions and 3 deletions

View file

@ -46,6 +46,7 @@ class ScourOptions:
embed_rasters = True
keep_editor_data = False
strip_xml_prolog = False
indent_type = "space"
class NoInkscapeElements(unittest.TestCase):
def runTest(self):
@ -754,6 +755,7 @@ class RemoveRedundantSvgNamespacePrefix(unittest.TestCase):
self.assertEquals( r.tagName, 'rect',
'Redundant svg: prefix not removed')
class RemoveDefaultGradX1Value(unittest.TestCase):
def runTest(self):
g = scour.scourXmlFile('unittests/gradient-default-attrs.svg').getElementsByTagNameNS(SVGNS, 'linearGradient')[0]