appmenus: adjust checking label color

Checking icon color is hard...

QubesOS/qubes-issues#1606
This commit is contained in:
Marek Marczykowski-Górecki 2016-04-19 23:25:56 +02:00
parent 7dccbd1ead
commit f688cba49c
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -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()