Skip to content

Commit

Permalink
One more color inconsistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
freakboy3742 committed Apr 24, 2024
1 parent b671127 commit 6bb1ee0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cocoa/tests_backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,24 @@ def assert_app_icon(self, icon):
# The explicit alt icon has blue background, with green at a point 1/3 into
# the image
assert img.getpixel((5, 5)) in {
(205, 226, 243, 255),
(211, 226, 243, 255),
(211, 230, 245, 255),
}
mid_color = img.getpixel((img.size[0] // 3, img.size[1] // 3))
assert mid_color == (105, 192, 32, 255)
assert mid_color in {
(0, 204, 9, 255),
(14, 197, 8, 255),
(105, 192, 32, 255),
}
else:
# The default icon is transparent background, and brown in the center.
assert img.getpixel((5, 5))[3] == 0
mid_color = img.getpixel((img.size[0] // 2, img.size[1] // 2))
assert mid_color in {
(130, 100, 57, 255),
(130, 109, 66, 255),
(138, 108, 64, 255),
(149, 119, 73, 255),
}

Expand Down

0 comments on commit 6bb1ee0

Please sign in to comment.