From 3beab0744f035bf0165fff2055ee8351b2ecb037 Mon Sep 17 00:00:00 2001 From: JSCHILL1 Date: Sun, 19 Apr 2009 08:09:33 -0500 Subject: [PATCH] Remove test for deleting unreferenced fonts --- scour.py | 1 + testscour.py | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/scour.py b/scour.py index 5fd8245..f9d63d5 100755 --- a/scour.py +++ b/scour.py @@ -47,6 +47,7 @@ # Next Up: # + Remove unnecessary nested elements # + Remove duplicate gradient stops (same offset, stop-color, stop-opacity) +# + Always keep fonts inside # - Convert all colors to #RRGGBB format # - Reduce #RRGGBB format to #RGB format when possible # - rework command-line argument processing so that options are configurable diff --git a/testscour.py b/testscour.py index aa70a9c..e27d0c3 100755 --- a/testscour.py +++ b/testscour.py @@ -202,12 +202,12 @@ class KeepReferencedFonts(unittest.TestCase): self.assertEquals(len(fonts), 1, "Font wrongly removed from " ) -class RemoveUnreferencedFonts(unittest.TestCase): - def runTest(self): - doc = scour.scourXmlFile('unittests/unreferenced-font.svg') - fonts = doc.documentElement.getElementsByTagNameNS('http://www.w3.org/2000/svg','font') - self.assertEquals(len(fonts), 0, - "Font was not removed from " ) +#class RemoveUnreferencedFonts(unittest.TestCase): +# def runTest(self): +# doc = scour.scourXmlFile('unittests/unreferenced-font.svg') +# fonts = doc.documentElement.getElementsByTagNameNS('http://www.w3.org/2000/svg','font') +# self.assertEquals(len(fonts), 0, +# "Font was not removed from " ) if __name__ == '__main__': unittest.main()