Account for different size in bitmap from cursor test

Use already existing wx.png to test the cursor.
Compare alpha channel of images.
This commit is contained in:
Maarten Bent
2021-04-10 15:26:10 +02:00
parent 0c82830a5d
commit 3a27830ed5
3 changed files with 61 additions and 34 deletions

View File

@@ -175,6 +175,11 @@ inline ImageRGBMatcher RGBSimilarTo(const wxImage& image, int tolerance)
return ImageRGBMatcher(image, tolerance, false);
}
inline ImageRGBMatcher RGBASimilarTo(const wxImage& image, int tolerance)
{
return ImageRGBMatcher(image, tolerance, true);
}
class ImageAlphaMatcher : public Catch::MatcherBase<wxImage>
{
public: