Fix flake errors.
This commit is contained in:
parent
ec7d06f925
commit
798eb299e5
2 changed files with 28 additions and 24 deletions
|
|
@ -3999,7 +3999,8 @@ _option_group_optimization.add_option("--disable-style-to-xml",
|
||||||
help="won't convert styles into XML attributes")
|
help="won't convert styles into XML attributes")
|
||||||
_option_group_optimization.add_option("--style",
|
_option_group_optimization.add_option("--style",
|
||||||
action="store", type="string", dest="style_type", default="none", metavar="TYPE",
|
action="store", type="string", dest="style_type", default="none", metavar="TYPE",
|
||||||
help="styles type (override style_to_xml): none, preserve, inline, attributes (default: %none)")
|
help="style type (overrides style-to-xml): none, preserve, inline,"\
|
||||||
|
"attributes (default: %none)")
|
||||||
_option_group_optimization.add_option("--disable-group-collapsing",
|
_option_group_optimization.add_option("--disable-group-collapsing",
|
||||||
action="store_false", dest="group_collapse", default=True,
|
action="store_false", dest="group_collapse", default=True,
|
||||||
help="won't collapse <g> elements")
|
help="won't collapse <g> elements")
|
||||||
|
|
|
||||||
|
|
@ -2212,6 +2212,7 @@ class StyleToAttr(unittest.TestCase):
|
||||||
self.assertEqual(line.getAttribute('marker-mid'), 'url(#m)')
|
self.assertEqual(line.getAttribute('marker-mid'), 'url(#m)')
|
||||||
self.assertEqual(line.getAttribute('marker-end'), 'url(#m)')
|
self.assertEqual(line.getAttribute('marker-end'), 'url(#m)')
|
||||||
|
|
||||||
|
|
||||||
class AttrToStyle(unittest.TestCase):
|
class AttrToStyle(unittest.TestCase):
|
||||||
|
|
||||||
def runTest(self):
|
def runTest(self):
|
||||||
|
|
@ -2231,6 +2232,7 @@ class AttrToStyle(unittest.TestCase):
|
||||||
self.assertTrue("marker-end:url(#m)" in rawStyles)
|
self.assertTrue("marker-end:url(#m)" in rawStyles)
|
||||||
self.assertTrue("marker-mid:url(#m)" in rawStyles)
|
self.assertTrue("marker-mid:url(#m)" in rawStyles)
|
||||||
|
|
||||||
|
|
||||||
class StylePreserve(unittest.TestCase):
|
class StylePreserve(unittest.TestCase):
|
||||||
|
|
||||||
def runTest(self):
|
def runTest(self):
|
||||||
|
|
@ -2251,6 +2253,7 @@ class StylePreserve(unittest.TestCase):
|
||||||
self.assertEqual(line.getAttribute('marker-mid'), '')
|
self.assertEqual(line.getAttribute('marker-mid'), '')
|
||||||
self.assertEqual(line.getAttribute('marker-end'), '')
|
self.assertEqual(line.getAttribute('marker-end'), '')
|
||||||
|
|
||||||
|
|
||||||
class PathCommandRewrites(unittest.TestCase):
|
class PathCommandRewrites(unittest.TestCase):
|
||||||
|
|
||||||
def runTest(self):
|
def runTest(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue