From 1e069acda8ed9d43fa466b7f23aca01ef2911201 Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Tue, 29 Aug 2023 18:30:54 -0700 Subject: [PATCH] fix bad color animation test The test clearly shows setting alpha to 0 but then uses a color string without the alpha component. A color string without an alpha component is implied opaque, not transparent. --- src/tests/test_properties/test_properties.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/test_properties/test_properties.cpp b/src/tests/test_properties/test_properties.cpp index f6f2094e9..f4f16a3e8 100644 --- a/src/tests/test_properties/test_properties.cpp +++ b/src/tests/test_properties/test_properties.cpp @@ -1237,7 +1237,7 @@ private Q_SLOTS: QCOMPARE(p.anim_get_color("key", 25).g, 247); QCOMPARE(p.anim_get_color("key", 25).b, 171); QCOMPARE(p.anim_get_color("key", 25).a, 111); - QCOMPARE(p.get("key"), "0=#ffefab;50=#df00ffab"); + QCOMPARE(p.get("key"), "0=#00ffefab;50=#df00ffab"); // Animation from string value QCOMPARE(p.anim_get_color("key", 0).r, 255);