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:
parent
0c82830a5d
commit
3a27830ed5
3 changed files with 61 additions and 34 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue