appmenus: adjust checking label color
Checking icon color is hard... QubesOS/qubes-issues#1606
This commit is contained in:
parent
7dccbd1ead
commit
f688cba49c
@ -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…
Reference in New Issue
Block a user