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:
parent
e17d3b8526
commit
5f5c8a431d
3 changed files with 8 additions and 3 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue