appmenus: adjust checking label color

Checking icon color is hard...

QubesOS/qubes-issues#1606
pull/26/head
Marek Marczykowski-Górecki 8 years ago
parent 7dccbd1ead
commit f688cba49c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -315,7 +315,7 @@ class TC_10_AppmenusIntegration(qubes.tests.extra.ExtraTestCase):
def assertIconColor(self, path, expected_color):
image_color_float = self.get_image_color(path, expected_color)
expected_color_float = qubesimgconverter.hex_to_float(expected_color)
if not all(map(lambda a, b: abs(a - b) <= 0.0625,
if not all(map(lambda a, b: abs(a - b) <= 0.15,
image_color_float, expected_color_float)):
self.fail(
"Icon {} is not colored as {}".format(path, expected_color))
@ -329,7 +329,7 @@ class TC_10_AppmenusIntegration(qubes.tests.extra.ExtraTestCase):
def test_011_icon_color_label_change(self):
"""Regression test for #1606"""
self.vm.label = 'blue'
self.vm.label = 'green'
self.test_010_icon_color()

Loading…
Cancel
Save