Update wxWEBPHandler tests

This commit is contained in:
Maarten Bent
2025-05-10 17:19:30 +02:00
parent d6209abf2d
commit 312fa745d6
6 changed files with 44 additions and 50 deletions
+2 -1
View File
@@ -202,8 +202,8 @@
#include <wx/imagpnm.h>
#include <wx/imagtga.h>
#include <wx/imagtiff.h>
#include <wx/imagxpm.h>
#include <wx/imagwebp.h>
#include <wx/imagxpm.h>
#include <wx/infobar.h>
#include <wx/init.h>
#include <wx/intl.h>
@@ -396,6 +396,7 @@
#include <wx/volume.h>
#include <wx/vscroll.h>
#include <wx/weakref.h>
#include <wx/webpdecoder.h>
#include <wx/webrequest.h>
#include <wx/webview_chromium.h>
#include <wx/webviewarchivehandler.h>
File diff suppressed because one or more lines are too long
+3 -2
View File
@@ -847,12 +847,13 @@ TEST_CASE_METHOD(ImageHandlersInit, "wxImage::CompareLoadedImage", "[image]")
wxINFO_FMT("Compare test '%s' for loading", g_testfiles[i].file);
wxImage & expected = g_testfiles[i].bitDepth == 8 ? expected8 : expected24;
int tolerance = 0;
switch (g_testfiles[i].type) {
switch (g_testfiles[i].type)
{
case wxBITMAP_TYPE_JPEG:
case wxBITMAP_TYPE_WEBP:
tolerance = 42; // lossy formats can have a substantial difference
// this value has been chosen to be okay for the existing JPEG sample
break;
break;
default:
tolerance = 0; // all other formats must match exactly
}
File diff suppressed because one or more lines are too long
+1
View File
@@ -1010,6 +1010,7 @@
<ClCompile Include="html\htmlwindow.cpp" />
<ClCompile Include="html\htmprint.cpp" />
<ClCompile Include="image\image.cpp" />
<ClCompile Include="image\imagwebp.cpp" />
<ClCompile Include="image\rawbmp.cpp" />
<ClCompile Include="menu\accelentry.cpp" />
<ClCompile Include="menu\menu.cpp" />
+3
View File
@@ -326,6 +326,9 @@
<ClCompile Include="graphics\graphbitmap.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="image\imagwebp.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ResourceCompile Include=".\test.rc">