refactor(btn, img): rename btn to button and img to image
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user