From cca66b9ec4e494c1d919bff0f71a820d8afab1fa Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 20:24:48 +0200 Subject: Adding upstream version 1.2.2. Signed-off-by: Daniel Baumann --- .../extensions/tests/test_color_lesssaturation.py | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 share/extensions/tests/test_color_lesssaturation.py (limited to 'share/extensions/tests/test_color_lesssaturation.py') diff --git a/share/extensions/tests/test_color_lesssaturation.py b/share/extensions/tests/test_color_lesssaturation.py new file mode 100644 index 0000000..6396e4b --- /dev/null +++ b/share/extensions/tests/test_color_lesssaturation.py @@ -0,0 +1,28 @@ +# coding=utf-8 +from color_lesssaturation import LessSaturation +from .test_inkex_extensions import ColorBaseCase + + +class ColorLessSaturationTest(ColorBaseCase): + effect_class = LessSaturation + color_tests = [ + ("none", "none"), + ("hsl(0, 0, 0)", "hsl(0, 0, 0)"), + ("hsl(255, 255, 255)", "hsl(255, 243, 255)"), + ((0, 0, 0), "#000000"), + ((255, 255, 255), "#ffffff"), + ((192, 192, 192), "#c0c0c0"), + ((128, 128, 128), "#808080"), + ((128, 0, 0), "#7c0303"), + ((255, 0, 0), "#f80505"), + ((128, 128, 0), "#7c7b03"), + ((255, 255, 0), "#f8f505"), + ((0, 128, 0), "#037c03"), + ((0, 255, 0), "#05f805"), + ((0, 128, 128), "#037c7b"), + ((0, 255, 255), "#05f8f5"), + ((0, 0, 128), "#03037c"), + ((0, 0, 255), "#0505f8"), + ((128, 0, 128), "#7b037c"), + ((255, 0, 255), "#f505f8"), + ] -- cgit v1.2.3