test: remove png file output
#include <stdlib.h>
#include <LCUI_Build.h>
#include <LCUI/LCUI.h>
-#include <LCUI/image.h>
#include <LCUI/gui/widget.h>
#include <LCUI/gui/widget/textview.h>
#include <LCUI/gui/css_parser.h>
@@ -18,18 +17,6 @@ static struct {
LCUI_Widget text;
} self;
-#ifdef LCUI_BUILD_IN_WIN32
-static void LoggerHandler(const char *str)
-{
- OutputDebugStringA(str);
-}
-
-static void LoggerHandlerW(const wchar_t *str)
-{
- OutputDebugStringW(str);
-}
-#endif
-
static void build(void)
{
LCUI_Widget pack, root;
@@ -124,7 +111,6 @@ static int check_widget_opactiy(void)
CHECK_WITH_TEXT("check child 2 footer background color",
check_color(expected_color, color));
- LCUI_WritePNGFile("test_widget_opacity.png", &canvas);
Graph_Free(&canvas);
return ret;
}
@@ -175,10 +161,6 @@ int main(void)
{
LCUI_Widget btn_plus, btn_minus;
-#ifdef LCUI_BUILD_IN_WIN32
- Logger_SetHandler(LoggerHandler);
- Logger_SetHandlerW(LoggerHandlerW);
-#endif
LCUI_Init();
build();
