Skip to content

Commit

Permalink
fix bad color animation test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ddennedy committed Aug 30, 2023
1 parent 21a5b68 commit 1e069ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tests/test_properties/test_properties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e069ac

Please sign in to comment.