summaryrefslogtreecommitdiffstats
path: root/share/extensions/tests/test_color_HSL_adjust.py
diff options
context:
space:
mode:
Diffstat (limited to 'share/extensions/tests/test_color_HSL_adjust.py')
-rw-r--r--share/extensions/tests/test_color_HSL_adjust.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/share/extensions/tests/test_color_HSL_adjust.py b/share/extensions/tests/test_color_HSL_adjust.py
new file mode 100644
index 0000000..640a468
--- /dev/null
+++ b/share/extensions/tests/test_color_HSL_adjust.py
@@ -0,0 +1,33 @@
+# coding=utf-8
+from color_hsl_adjust import HslAdjust
+from .test_inkex_extensions import ColorBaseCase
+
+
+class ColorHSLAdjustTest(ColorBaseCase):
+ effect_class = HslAdjust
+ color_tests = [
+ ("none", "none"),
+ ((255, 255, 255), "#ffffff"),
+ ((0, 0, 0), "#000000"),
+ ((0, 128, 0), "#008000"),
+ ((91, 166, 176), "#5a98af", ["-x 10"]),
+ ((91, 166, 176), "#5aaf80", ["-x 320"]),
+ ((91, 166, 176), "#5ba6b0", ["-x 0"]),
+ ((91, 166, 176), "#af5a78", ["-x 12345"]),
+ ((91, 166, 176), "#5aa8af", ["-x -1"]),
+ ((91, 166, 176), "#4eafbb", ["-s 10"]),
+ ((91, 166, 176), "#0be5fe", ["-s 90"]),
+ ((91, 166, 176), "#5ba6b0", ["-s 0"]),
+ ((91, 166, 176), "#0be5fe", ["-s 100"]),
+ ((91, 166, 176), "#0be5fe", ["-s 12345"]),
+ ((91, 166, 176), "#5ba5ae", ["-s -1"]),
+ ((91, 166, 176), "#7cb8bf", ["-l 10"]),
+ ((91, 166, 176), "#ffffff", ["-l 90"]),
+ ((91, 166, 176), "#5ba6b0", ["-l 0"]),
+ ((91, 166, 176), "#ffffff", ["-l 100"]),
+ ((91, 166, 176), "#ffffff", ["-l 12345"]),
+ ((91, 166, 176), "#56a4ad", ["-l -1"]),
+ ((91, 166, 176), "#5a86af", ["--random_h=true"]),
+ ((91, 166, 176), "#cde4e6", ["--random_l=true"]),
+ ((91, 166, 176), "#43b8c6", ["--random_s=true"]),
+ ]