refactor(btn, img): rename btn to button and img to image

This commit is contained in:
Gabor Kiss-Vamosi
2023-09-14 20:12:31 +02:00
parent e91786ce49
commit 09c12d0f9c
366 changed files with 3271 additions and 3222 deletions

View File

@@ -9,7 +9,7 @@ extern "C" {
#include <stdbool.h>
#include "../../lvgl.h"
bool lv_test_assert_img_eq(const char * fn_ref);
bool lv_test_assert_image_eq(const char * fn_ref);
#if LV_COLOR_DEPTH != 32
@@ -20,14 +20,14 @@ bool lv_test_assert_img_eq(const char * fn_ref);
# define TEST_ASSERT_EQUAL_SCREENSHOT(path) if(LV_HOR_RES != 800 || LV_VER_RES != 480) { \
TEST_IGNORE_MESSAGE("Requires 800x480 resolution"); \
} else { \
TEST_ASSERT_MESSAGE(lv_test_assert_img_eq(path), path); \
TEST_ASSERT_MESSAGE(lv_test_assert_image_eq(path), path); \
}
# define TEST_ASSERT_EQUAL_SCREENSHOT_MESSAGE(path, msg) if(LV_HOR_RES != 800 || LV_VER_RES != 480) { \
TEST_PRINTF(msg); \
TEST_IGNORE_MESSAGE("Requires 800x480 resolution"); \
} else { \
TEST_ASSERT_MESSAGE(lv_test_assert_img_eq(path), msg); \
TEST_ASSERT_MESSAGE(lv_test_assert_image_eq(path), msg); \
}
#endif