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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user