Remove test for deleting unreferenced fonts
This commit is contained in:
parent
8d0bb8fe55
commit
3beab0744f
2 changed files with 7 additions and 6 deletions
1
scour.py
1
scour.py
|
|
@ -47,6 +47,7 @@
|
||||||
# Next Up:
|
# Next Up:
|
||||||
# + Remove unnecessary nested <g> elements
|
# + Remove unnecessary nested <g> elements
|
||||||
# + Remove duplicate gradient stops (same offset, stop-color, stop-opacity)
|
# + Remove duplicate gradient stops (same offset, stop-color, stop-opacity)
|
||||||
|
# + Always keep fonts inside <defs>
|
||||||
# - Convert all colors to #RRGGBB format
|
# - Convert all colors to #RRGGBB format
|
||||||
# - Reduce #RRGGBB format to #RGB format when possible
|
# - Reduce #RRGGBB format to #RGB format when possible
|
||||||
# - rework command-line argument processing so that options are configurable
|
# - rework command-line argument processing so that options are configurable
|
||||||
|
|
|
||||||
12
testscour.py
12
testscour.py
|
|
@ -202,12 +202,12 @@ class KeepReferencedFonts(unittest.TestCase):
|
||||||
self.assertEquals(len(fonts), 1,
|
self.assertEquals(len(fonts), 1,
|
||||||
"Font wrongly removed from <defs>" )
|
"Font wrongly removed from <defs>" )
|
||||||
|
|
||||||
class RemoveUnreferencedFonts(unittest.TestCase):
|
#class RemoveUnreferencedFonts(unittest.TestCase):
|
||||||
def runTest(self):
|
# def runTest(self):
|
||||||
doc = scour.scourXmlFile('unittests/unreferenced-font.svg')
|
# doc = scour.scourXmlFile('unittests/unreferenced-font.svg')
|
||||||
fonts = doc.documentElement.getElementsByTagNameNS('http://www.w3.org/2000/svg','font')
|
# fonts = doc.documentElement.getElementsByTagNameNS('http://www.w3.org/2000/svg','font')
|
||||||
self.assertEquals(len(fonts), 0,
|
# self.assertEquals(len(fonts), 0,
|
||||||
"Font was not removed from <defs>" )
|
# "Font was not removed from <defs>" )
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue