mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-23 23:13:12 +08:00
Update wxWEBPHandler tests
This commit is contained in:
+2
-1
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
+35
-41
File diff suppressed because one or more lines are too long
@@ -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" />
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user