Fix bug in remapping of namespace prefixes (was not actually remapping child elements of replaced elements

This commit is contained in:
JSCHILL1 2009-08-12 10:04:40 -05:00
parent d8b2497d91
commit 0bf1e8942c
4 changed files with 24 additions and 2 deletions

View file

@ -868,6 +868,13 @@ class NamespaceDeclPrefixesInXMLWhenNotInDefaultNamespace(unittest.TestCase):
xmlstring = scour.scourString(open('unittests/xml-ns-decl.svg').read())
self.assert_( xmlstring.find('xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"') != -1,
'Improperly serialized namespace prefix declarations when not in default namespace')
class MoveSVGElementsToDefaultNamespace(unittest.TestCase):
def runTest(self):
xmlstring = scour.scourString(open('unittests/xml-ns-decl.svg').read())
self.assert_( xmlstring.find('<rect ') != -1,
'Did not bring SVG elements into the default namespace')
# TODO; write a test for embedding rasters
# TODO: write a test for --disable-embed-rasters
# TODO: write tests for --keep-editor-data