Fix wxImage::InitAlpha tests in release build
In release build exceptions are not thrown so there is no need to check them.
This commit is contained in:
parent
d89af4e311
commit
4a7ac90ce3
1 changed files with 8 additions and 0 deletions
|
|
@ -2120,7 +2120,11 @@ TEST_CASE("wxImage::InitAlpha", "[image][initalpha]")
|
|||
REQUIRE_FALSE(img.HasMask());
|
||||
|
||||
wxImage imgRes = img;
|
||||
#ifdef __WXDEBUG__
|
||||
CHECK_THROWS(imgRes.InitAlpha());
|
||||
#else
|
||||
imgRes.InitAlpha();
|
||||
#endif
|
||||
REQUIRE(imgRes.HasAlpha() == true);
|
||||
REQUIRE_FALSE(imgRes.HasMask());
|
||||
|
||||
|
|
@ -2151,7 +2155,11 @@ TEST_CASE("wxImage::InitAlpha", "[image][initalpha]")
|
|||
REQUIRE(img.HasMask() == true);
|
||||
|
||||
wxImage imgRes = img;
|
||||
#ifdef __WXDEBUG__
|
||||
CHECK_THROWS(imgRes.InitAlpha());
|
||||
#else
|
||||
imgRes.InitAlpha();
|
||||
#endif
|
||||
REQUIRE(imgRes.HasAlpha() == true);
|
||||
REQUIRE(imgRes.HasMask() == true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue