From f688cba49c870d29086df057ed633cff7debad31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 19 Apr 2016 23:25:56 +0200 Subject: [PATCH] appmenus: adjust checking label color Checking icon color is hard... QubesOS/qubes-issues#1606 --- qubesappmenus/tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qubesappmenus/tests.py b/qubesappmenus/tests.py index 3561247..bc0d587 100644 --- a/qubesappmenus/tests.py +++ b/qubesappmenus/tests.py @@ -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()