test: reorganize tests and ref_images
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 22 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 29 KiB |
|
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
|
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 6.7 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 5.9 KiB After Width: | Height: | Size: 5.9 KiB |
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 6.4 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
|
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
|
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 4.6 KiB |
@@ -44,7 +44,7 @@ void test_barcode_normal(void)
|
|||||||
TEST_ASSERT_NOT_NULL(image_dsc);
|
TEST_ASSERT_NOT_NULL(image_dsc);
|
||||||
|
|
||||||
lv_obj_set_size(barcode, image_dsc->header.w, 50);
|
lv_obj_set_size(barcode, image_dsc->header.w, 50);
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("barcode_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("libs/barcode_1.png");
|
||||||
|
|
||||||
lv_barcode_set_direction(barcode, LV_DIR_VER);
|
lv_barcode_set_direction(barcode, LV_DIR_VER);
|
||||||
res = lv_barcode_update(barcode, "https://lvgl.io");
|
res = lv_barcode_update(barcode, "https://lvgl.io");
|
||||||
@@ -54,7 +54,7 @@ void test_barcode_normal(void)
|
|||||||
TEST_ASSERT_NOT_NULL(image_dsc);
|
TEST_ASSERT_NOT_NULL(image_dsc);
|
||||||
|
|
||||||
lv_obj_set_size(barcode, 50, image_dsc->header.h);
|
lv_obj_set_size(barcode, 50, image_dsc->header.h);
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("barcode_2.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("libs/barcode_2.png");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ void test_tiny_ttf_rendering_test(void)
|
|||||||
"Accents: ÁÉÍÓÖŐÜŰ áéíóöőüű");
|
"Accents: ÁÉÍÓÖŐÜŰ áéíóöőüű");
|
||||||
lv_obj_center(label);
|
lv_obj_center(label);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tiny_ttf_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("libs/tiny_ttf_1.png");
|
||||||
|
|
||||||
lv_obj_del(label);
|
lv_obj_del(label);
|
||||||
lv_tiny_ttf_destroy(font);
|
lv_tiny_ttf_destroy(font);
|
||||||
@@ -69,7 +69,7 @@ void test_tiny_ttf_kerning()
|
|||||||
lv_label_set_text(label_none, "ıTuTuTı");
|
lv_label_set_text(label_none, "ıTuTuTı");
|
||||||
lv_obj_set_style_text_font(label_none, font_none, LV_PART_MAIN);
|
lv_obj_set_style_text_font(label_none, font_none, LV_PART_MAIN);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tiny_ttf_2.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("libs/tiny_ttf_2.png");
|
||||||
|
|
||||||
lv_obj_del(cont);
|
lv_obj_del(cont);
|
||||||
lv_tiny_ttf_destroy(font_normal);
|
lv_tiny_ttf_destroy(font_normal);
|
||||||
|
|||||||
@@ -199,7 +199,7 @@ void test_arc_click_sustained_from_start_to_end_does_not_set_value_to_max(void)
|
|||||||
TEST_ASSERT_EQUAL_UINT32(1, event_cnt);
|
TEST_ASSERT_EQUAL_UINT32(1, event_cnt);
|
||||||
TEST_ASSERT_EQUAL_INT32(lv_arc_get_min_value(arc), lv_arc_get_value(arc));
|
TEST_ASSERT_EQUAL_INT32(lv_arc_get_min_value(arc), lv_arc_get_value(arc));
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("arc_2.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/arc_2.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_arc_basic_render(void)
|
void test_arc_basic_render(void)
|
||||||
@@ -207,7 +207,7 @@ void test_arc_basic_render(void)
|
|||||||
arc = lv_arc_create(lv_screen_active());
|
arc = lv_arc_create(lv_screen_active());
|
||||||
lv_obj_set_size(arc, 100, 100);
|
lv_obj_set_size(arc, 100, 100);
|
||||||
lv_obj_center(arc);
|
lv_obj_center(arc);
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("arc_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/arc_1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void dummy_event_cb(lv_event_t * e)
|
static void dummy_event_cb(lv_event_t * e)
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ void test_bar_normal(void)
|
|||||||
lv_bar_set_value(test_bar, 30, LV_ANIM_OFF);
|
lv_bar_set_value(test_bar, 30, LV_ANIM_OFF);
|
||||||
lv_obj_set_size(test_bar, h, w);
|
lv_obj_set_size(test_bar, h, w);
|
||||||
lv_obj_align(test_bar, LV_ALIGN_TOP_LEFT, x, y);
|
lv_obj_align(test_bar, LV_ALIGN_TOP_LEFT, x, y);
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("bar_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/bar_1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ void test_button_matrix_set_map_works(void)
|
|||||||
TEST_ASSERT_EQUAL_STRING(exp_map[4], ret_map[4]);
|
TEST_ASSERT_EQUAL_STRING(exp_map[4], ret_map[4]);
|
||||||
TEST_ASSERT_EQUAL_STRING(exp_map[5], ret_map[5]);
|
TEST_ASSERT_EQUAL_STRING(exp_map[5], ret_map[5]);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("btnm_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/btnm_1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_button_matrix_render_2(void)
|
void test_button_matrix_render_2(void)
|
||||||
@@ -123,7 +123,7 @@ void test_button_matrix_render_2(void)
|
|||||||
lv_buttonmatrix_set_button_ctrl(btnm, 11, LV_BUTTONMATRIX_CTRL_CHECKED);
|
lv_buttonmatrix_set_button_ctrl(btnm, 11, LV_BUTTONMATRIX_CTRL_CHECKED);
|
||||||
lv_obj_set_pos(btnm, 180, 160);
|
lv_obj_set_pos(btnm, 180, 160);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("btnm_2.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/btnm_2.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_button_matrix_set_ctrl_map_works(void)
|
void test_button_matrix_set_ctrl_map_works(void)
|
||||||
|
|||||||
@@ -69,14 +69,14 @@ void test_calendar_set_today_date_gui(void)
|
|||||||
lv_calendar_set_today_date(calendar, today.year, today.month, today.day);
|
lv_calendar_set_today_date(calendar, today.year, today.month, today.day);
|
||||||
lv_calendar_set_showed_date(calendar, 2022, 9);
|
lv_calendar_set_showed_date(calendar, 2022, 9);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("calendar_01.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/calendar_01.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_calendar_set_showed_date_gui(void)
|
void test_calendar_set_showed_date_gui(void)
|
||||||
{
|
{
|
||||||
lv_calendar_set_showed_date(calendar, 2022, 9);
|
lv_calendar_set_showed_date(calendar, 2022, 9);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("calendar_02.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/calendar_02.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_calendar_set_highlighted_dates(void)
|
void test_calendar_set_highlighted_dates(void)
|
||||||
@@ -126,7 +126,7 @@ void test_calendar_set_highlighted_dates_gui(void)
|
|||||||
|
|
||||||
lv_calendar_set_showed_date(calendar, 2022, 2);
|
lv_calendar_set_showed_date(calendar, 2022, 2);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("calendar_03.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/calendar_03.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_calendar_set_day_names_gui(void)
|
void test_calendar_set_day_names_gui(void)
|
||||||
@@ -137,7 +137,7 @@ void test_calendar_set_day_names_gui(void)
|
|||||||
|
|
||||||
lv_calendar_set_showed_date(calendar, 2022, 9);
|
lv_calendar_set_showed_date(calendar, 2022, 9);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("calendar_04.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/calendar_04.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_calendar_get_highlighted_dates_num(void)
|
void test_calendar_get_highlighted_dates_num(void)
|
||||||
@@ -167,7 +167,7 @@ void test_calendar_header_dropdown_create_gui(void)
|
|||||||
|
|
||||||
lv_calendar_set_showed_date(calendar, 2022, 9);
|
lv_calendar_set_showed_date(calendar, 2022, 9);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("calendar_05.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/calendar_05.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_calendar_header_arrow_create_gui(void)
|
void test_calendar_header_arrow_create_gui(void)
|
||||||
@@ -176,7 +176,7 @@ void test_calendar_header_arrow_create_gui(void)
|
|||||||
|
|
||||||
lv_calendar_set_showed_date(calendar, 2022, 10); // Use October to avoid month name sliding
|
lv_calendar_set_showed_date(calendar, 2022, 10); // Use October to avoid month name sliding
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("calendar_06.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/calendar_06.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_calendar_event_key_down_gui(void)
|
void test_calendar_event_key_down_gui(void)
|
||||||
@@ -187,7 +187,7 @@ void test_calendar_event_key_down_gui(void)
|
|||||||
|
|
||||||
lv_obj_send_event(calendar, LV_EVENT_KEY, (void *) &key);
|
lv_obj_send_event(calendar, LV_EVENT_KEY, (void *) &key);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("calendar_07.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/calendar_07.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_calendar_get_pressed_date_null(void)
|
void test_calendar_get_pressed_date_null(void)
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ void test_checkbox_rtl(void)
|
|||||||
lv_obj_center(test_checkbox);
|
lv_obj_center(test_checkbox);
|
||||||
lv_obj_set_style_base_dir(test_checkbox, LV_BASE_DIR_RTL, 0);
|
lv_obj_set_style_base_dir(test_checkbox, LV_BASE_DIR_RTL, 0);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("checkbox_rtl_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/checkbox_rtl_1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ void test_dropdown_render_1(void)
|
|||||||
lv_dropdown_set_selected(dd3, 3);
|
lv_dropdown_set_selected(dd3, 3);
|
||||||
|
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("dropdown_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/dropdown_1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_dropdown_render_2(void)
|
void test_dropdown_render_2(void)
|
||||||
@@ -420,7 +420,7 @@ void test_dropdown_render_2(void)
|
|||||||
lv_obj_align(dd7, LV_ALIGN_BOTTOM_RIGHT, -20, -20);
|
lv_obj_align(dd7, LV_ALIGN_BOTTOM_RIGHT, -20, -20);
|
||||||
lv_dropdown_open(dd7);
|
lv_dropdown_open(dd7);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("dropdown_2.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/dropdown_2.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* See #2893 */
|
/* See #2893 */
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ void test_image_rotated_pivot_center(void)
|
|||||||
/*The default pivot should be the center*/
|
/*The default pivot should be the center*/
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_rotate_pivot_center.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_rotate_pivot_center.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_rotated_pivot_top_left(void)
|
void test_image_rotated_pivot_top_left(void)
|
||||||
@@ -51,7 +51,7 @@ void test_image_rotated_pivot_top_left(void)
|
|||||||
lv_image_set_pivot(img, 0, 0);
|
lv_image_set_pivot(img, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_rotate_pivot_top_left.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_rotate_pivot_top_left.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_scale_pivot_center(void)
|
void test_image_scale_pivot_center(void)
|
||||||
@@ -65,7 +65,7 @@ void test_image_scale_pivot_center(void)
|
|||||||
/*The default pivot should be the center*/
|
/*The default pivot should be the center*/
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_scale_pivot_center.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_scale_pivot_center.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_scale_pivot_top_left(void)
|
void test_image_scale_pivot_top_left(void)
|
||||||
@@ -79,7 +79,7 @@ void test_image_scale_pivot_top_left(void)
|
|||||||
lv_image_set_pivot(img, 0, 0);
|
lv_image_set_pivot(img, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_scale_pivot_top_left.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_scale_pivot_top_left.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_scale_x_pivot_center(void)
|
void test_image_scale_x_pivot_center(void)
|
||||||
@@ -93,7 +93,7 @@ void test_image_scale_x_pivot_center(void)
|
|||||||
/*The default pivot should be the center*/
|
/*The default pivot should be the center*/
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_scale_x_pivot_center.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_scale_x_pivot_center.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_scale_x_pivot_top_left(void)
|
void test_image_scale_x_pivot_top_left(void)
|
||||||
@@ -107,7 +107,7 @@ void test_image_scale_x_pivot_top_left(void)
|
|||||||
lv_image_set_pivot(img, 0, 0);
|
lv_image_set_pivot(img, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_scale_x_pivot_top_left.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_scale_x_pivot_top_left.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_scale_y_pivot_center(void)
|
void test_image_scale_y_pivot_center(void)
|
||||||
@@ -121,7 +121,7 @@ void test_image_scale_y_pivot_center(void)
|
|||||||
/*The default pivot should be the center*/
|
/*The default pivot should be the center*/
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_scale_y_pivot_center.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_scale_y_pivot_center.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_scale_y_pivot_top_left(void)
|
void test_image_scale_y_pivot_top_left(void)
|
||||||
@@ -135,7 +135,7 @@ void test_image_scale_y_pivot_top_left(void)
|
|||||||
lv_image_set_pivot(img, 0, 0);
|
lv_image_set_pivot(img, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_scale_y_pivot_top_left.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_scale_y_pivot_top_left.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_rotate_and_scale_pivot_center(void)
|
void test_image_rotate_and_scale_pivot_center(void)
|
||||||
@@ -151,7 +151,7 @@ void test_image_rotate_and_scale_pivot_center(void)
|
|||||||
/*The default pivot should be the center*/
|
/*The default pivot should be the center*/
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_rotate_and_scale_pivot_center.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_rotate_and_scale_pivot_center.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_rotate_and_scale_pivot_top_left(void)
|
void test_image_rotate_and_scale_pivot_top_left(void)
|
||||||
@@ -167,7 +167,7 @@ void test_image_rotate_and_scale_pivot_top_left(void)
|
|||||||
lv_image_set_pivot(img, 0, 0);
|
lv_image_set_pivot(img, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_rotate_and_scale_pivot_top_left.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_rotate_and_scale_pivot_top_left.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_normal_align(void)
|
void test_image_normal_align(void)
|
||||||
@@ -187,7 +187,7 @@ void test_image_normal_align(void)
|
|||||||
lv_image_set_align(img, aligns[i]);
|
lv_image_set_align(img, aligns[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_normal_align.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_normal_align.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_normal_align_offset(void)
|
void test_image_normal_align_offset(void)
|
||||||
@@ -209,7 +209,7 @@ void test_image_normal_align_offset(void)
|
|||||||
lv_image_set_offset_y(img, 20);
|
lv_image_set_offset_y(img, 20);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_normal_align_offset.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_normal_align_offset.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_transform_align(void)
|
void test_image_transform_align(void)
|
||||||
@@ -232,7 +232,7 @@ void test_image_transform_align(void)
|
|||||||
lv_image_set_align(img, aligns[i]);
|
lv_image_set_align(img, aligns[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_transform_align.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_transform_align.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_transform_align_offset(void)
|
void test_image_transform_align_offset(void)
|
||||||
@@ -257,7 +257,7 @@ void test_image_transform_align_offset(void)
|
|||||||
lv_image_set_rotation(img, 200);
|
lv_image_set_rotation(img, 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_transform_align_offset.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_transform_align_offset.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_stretch(void)
|
void test_image_stretch(void)
|
||||||
@@ -279,7 +279,7 @@ void test_image_stretch(void)
|
|||||||
lv_image_set_align(img, LV_IMAGE_ALIGN_STRETCH);
|
lv_image_set_align(img, LV_IMAGE_ALIGN_STRETCH);
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_stretch.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_stretch.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -316,7 +316,7 @@ void test_image_tile(void)
|
|||||||
lv_image_set_offset_x(img, -2000);
|
lv_image_set_offset_x(img, -2000);
|
||||||
lv_image_set_offset_y(img, 2000);
|
lv_image_set_offset_y(img, 2000);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("image_tile.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/image_tile.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_image_ignore_transformation_settings_when_stretched(void)
|
void test_image_ignore_transformation_settings_when_stretched(void)
|
||||||
@@ -30,7 +30,7 @@ void test_led_render_1(void)
|
|||||||
lv_obj_align(led, LV_ALIGN_CENTER, 80, 0);
|
lv_obj_align(led, LV_ALIGN_CENTER, 80, 0);
|
||||||
lv_led_on(led);
|
lv_led_on(led);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("led_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/led_1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_led_set_color_works(void)
|
void test_led_set_color_works(void)
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ void test_line_basic_render(void)
|
|||||||
lv_obj_set_style_line_dash_gap(line, 3, LV_PART_MAIN);
|
lv_obj_set_style_line_dash_gap(line, 3, LV_PART_MAIN);
|
||||||
lv_obj_set_style_line_dash_width(line, 10, LV_PART_MAIN);
|
lv_obj_set_style_line_dash_width(line, 10, LV_PART_MAIN);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("line_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/line_1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ void test_list_snapshot(void)
|
|||||||
|
|
||||||
lv_obj_center(snapshot_list);
|
lv_obj_center(snapshot_list);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("list_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/list_1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ void test_msgbox_creation_successful_with_close_button(void)
|
|||||||
|
|
||||||
TEST_ASSERT_NOT_NULL(msgbox);
|
TEST_ASSERT_NOT_NULL(msgbox);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("msgbox_ok_with_close_btn.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/msgbox_ok_with_close_btn.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_msgbox_creation_successful_no_close_button(void)
|
void test_msgbox_creation_successful_no_close_button(void)
|
||||||
@@ -58,7 +58,7 @@ void test_msgbox_creation_successful_no_close_button(void)
|
|||||||
|
|
||||||
TEST_ASSERT_NOT_NULL(msgbox);
|
TEST_ASSERT_NOT_NULL(msgbox);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("msgbox_ok_no_close_btn.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/msgbox_ok_no_close_btn.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_msgbox_creation_successful_modal(void)
|
void test_msgbox_creation_successful_modal(void)
|
||||||
|
|||||||
@@ -88,14 +88,14 @@ void test_obj_flag_overflow_visible_1(void)
|
|||||||
TEST_ASSERT_EQUAL_UINT32(1, cnt_1);
|
TEST_ASSERT_EQUAL_UINT32(1, cnt_1);
|
||||||
TEST_ASSERT_EQUAL_UINT32(2, cnt_2);
|
TEST_ASSERT_EQUAL_UINT32(2, cnt_2);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("obj_flag_overflow_visible_1_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/obj_flag_overflow_visible_1_1.png");
|
||||||
|
|
||||||
/*Test if the overflowing parts are rendered correctly after scrolling too*/
|
/*Test if the overflowing parts are rendered correctly after scrolling too*/
|
||||||
lv_obj_scroll_by_bounded(obj_main, -20, 0, LV_ANIM_OFF);
|
lv_obj_scroll_by_bounded(obj_main, -20, 0, LV_ANIM_OFF);
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("obj_flag_overflow_visible_1_2.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/obj_flag_overflow_visible_1_2.png");
|
||||||
|
|
||||||
lv_obj_scroll_by_bounded(obj_child_2, -30, 0, LV_ANIM_OFF);
|
lv_obj_scroll_by_bounded(obj_child_2, -30, 0, LV_ANIM_OFF);
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("obj_flag_overflow_visible_1_3.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/obj_flag_overflow_visible_1_3.png");
|
||||||
|
|
||||||
/*Test with rotation*/
|
/*Test with rotation*/
|
||||||
lv_obj_set_style_transform_rotation(obj_main, 300, 0);
|
lv_obj_set_style_transform_rotation(obj_main, 300, 0);
|
||||||
@@ -138,7 +138,7 @@ void test_obj_flag_overflow_visible_1(void)
|
|||||||
|
|
||||||
TEST_ASSERT_EQUAL_UINT32(1, cnt_1);
|
TEST_ASSERT_EQUAL_UINT32(1, cnt_1);
|
||||||
TEST_ASSERT_EQUAL_UINT32(2, cnt_2);
|
TEST_ASSERT_EQUAL_UINT32(2, cnt_2);
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("obj_flag_overflow_visible_1_4.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/obj_flag_overflow_visible_1_4.png");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -33,7 +33,7 @@ void test_obj_tree_2(void)
|
|||||||
lv_obj_set_style_bg_color(lv_screen_active(), lv_color_hex(0x112233), 0);
|
lv_obj_set_style_bg_color(lv_screen_active(), lv_color_hex(0x112233), 0);
|
||||||
lv_obj_set_style_bg_opa(lv_screen_active(), LV_OPA_COVER, 0);
|
lv_obj_set_style_bg_opa(lv_screen_active(), LV_OPA_COVER, 0);
|
||||||
|
|
||||||
//TEST_ASSERT_EQUAL_SCREENSHOT("scr1.png")
|
//TEST_ASSERT_EQUAL_SCREENSHOT("widgets/scr1.png")
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_obj_tree_3(void)
|
void test_obj_tree_3(void)
|
||||||
@@ -212,7 +212,7 @@ void test_roller_with_overlay_and_bubble_events_enabled(void)
|
|||||||
// lv_roller_set_selected(roller, 1, LV_ANIM_OFF);
|
// lv_roller_set_selected(roller, 1, LV_ANIM_OFF);
|
||||||
// lv_obj_center(roller);
|
// lv_obj_center(roller);
|
||||||
//
|
//
|
||||||
// TEST_ASSERT_EQUAL_SCREENSHOT("roller_1.png");
|
// TEST_ASSERT_EQUAL_SCREENSHOT("widgets/roller_1.png");
|
||||||
//#else
|
//#else
|
||||||
// TEST_PASS();
|
// TEST_PASS();
|
||||||
//#endif
|
//#endif
|
||||||
|
|||||||
@@ -223,19 +223,19 @@ void test_spangroup_draw(void)
|
|||||||
lv_span_set_text(span_2, "This text is also over 100 pixels width");
|
lv_span_set_text(span_2, "This text is also over 100 pixels width");
|
||||||
lv_style_set_text_decor(&span_2->style, LV_TEXT_DECOR_STRIKETHROUGH);
|
lv_style_set_text_decor(&span_2->style, LV_TEXT_DECOR_STRIKETHROUGH);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("span_02.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/span_02.png");
|
||||||
|
|
||||||
lv_spangroup_set_align(spangroup, LV_TEXT_ALIGN_CENTER);
|
lv_spangroup_set_align(spangroup, LV_TEXT_ALIGN_CENTER);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("span_03.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/span_03.png");
|
||||||
|
|
||||||
lv_spangroup_set_mode(spangroup, LV_SPAN_MODE_EXPAND);
|
lv_spangroup_set_mode(spangroup, LV_SPAN_MODE_EXPAND);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("span_04.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/span_04.png");
|
||||||
|
|
||||||
lv_spangroup_set_mode(spangroup, LV_SPAN_MODE_FIXED);
|
lv_spangroup_set_mode(spangroup, LV_SPAN_MODE_FIXED);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("span_05.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/span_05.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_spangroup_get_child(void)
|
void test_spangroup_get_child(void)
|
||||||
@@ -25,8 +25,8 @@ void test_spinner_spinning(void)
|
|||||||
lv_tick_inc(50);
|
lv_tick_inc(50);
|
||||||
lv_task_handler();
|
lv_task_handler();
|
||||||
|
|
||||||
char filename[15];
|
char filename[32];
|
||||||
snprintf(filename, 15, "spinner_%02d.png", i);
|
snprintf(filename, sizeof(filename), "widgets/spinner_%02d.png", i);
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT(filename);
|
TEST_ASSERT_EQUAL_SCREENSHOT(filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -194,7 +194,7 @@ void test_table_rendering(void)
|
|||||||
lv_table_add_cell_ctrl(table, 4, 3, LV_TABLE_CELL_CTRL_TEXT_CROP);
|
lv_table_add_cell_ctrl(table, 4, 3, LV_TABLE_CELL_CTRL_TEXT_CROP);
|
||||||
lv_table_set_cell_value_fmt(table, 4, 3, "crop crop crop crop crop crop crop crop ");
|
lv_table_set_cell_value_fmt(table, 4, 3, "crop crop crop crop crop crop crop crop ");
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("table_1.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/table_1.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* See #3120 for context */
|
/* See #3120 for context */
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ void test_tabview_create_successful_dir_top(void)
|
|||||||
|
|
||||||
TEST_ASSERT_NOT_NULL(tabview);
|
TEST_ASSERT_NOT_NULL(tabview);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tabview_01.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/tabview_01.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_tabview_create_successful_dir_bottom(void)
|
void test_tabview_create_successful_dir_bottom(void)
|
||||||
@@ -51,7 +51,7 @@ void test_tabview_create_successful_dir_bottom(void)
|
|||||||
|
|
||||||
TEST_ASSERT_NOT_NULL(tabview);
|
TEST_ASSERT_NOT_NULL(tabview);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tabview_02.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/tabview_02.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_tabview_create_successful_dir_left(void)
|
void test_tabview_create_successful_dir_left(void)
|
||||||
@@ -60,7 +60,7 @@ void test_tabview_create_successful_dir_left(void)
|
|||||||
|
|
||||||
TEST_ASSERT_NOT_NULL(tabview);
|
TEST_ASSERT_NOT_NULL(tabview);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tabview_03.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/tabview_03.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_tabview_create_successful_dir_right(void)
|
void test_tabview_create_successful_dir_right(void)
|
||||||
@@ -69,7 +69,7 @@ void test_tabview_create_successful_dir_right(void)
|
|||||||
|
|
||||||
TEST_ASSERT_NOT_NULL(tabview);
|
TEST_ASSERT_NOT_NULL(tabview);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tabview_04.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/tabview_04.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_tabview_add_one_tab_empty(void)
|
void test_tabview_add_one_tab_empty(void)
|
||||||
@@ -100,7 +100,7 @@ void test_tabview_add_one_tab_no_scroll(void)
|
|||||||
const char * content = "Content of the first tab\n";
|
const char * content = "Content of the first tab\n";
|
||||||
lv_label_set_text(label, content);
|
lv_label_set_text(label, content);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tabview_05.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/tabview_05.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_tabview_add_one_tab_with_scroll(void)
|
void test_tabview_add_one_tab_with_scroll(void)
|
||||||
@@ -126,7 +126,7 @@ void test_tabview_add_one_tab_with_scroll(void)
|
|||||||
"\n"
|
"\n"
|
||||||
"Can you see it?");
|
"Can you see it?");
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tabview_06.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/tabview_06.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_tabview_add_several_tabs_no_scroll(void)
|
void test_tabview_add_several_tabs_no_scroll(void)
|
||||||
@@ -144,7 +144,7 @@ void test_tabview_add_several_tabs_no_scroll(void)
|
|||||||
LV_UNUSED(tab2);
|
LV_UNUSED(tab2);
|
||||||
LV_UNUSED(tab3);
|
LV_UNUSED(tab3);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tabview_07.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/tabview_07.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_tabview_rename_tab(void)
|
void test_tabview_rename_tab(void)
|
||||||
@@ -163,7 +163,7 @@ void test_tabview_rename_tab(void)
|
|||||||
// rename 2nd tab (0-based index)
|
// rename 2nd tab (0-based index)
|
||||||
lv_tabview_rename_tab(tabview, 1, "2nd Tab");
|
lv_tabview_rename_tab(tabview, 1, "2nd Tab");
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tabview_08.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/tabview_08.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_tabview_add_several_tabs_hor(void)
|
void test_tabview_add_several_tabs_hor(void)
|
||||||
@@ -181,7 +181,7 @@ void test_tabview_add_several_tabs_hor(void)
|
|||||||
LV_UNUSED(tab2);
|
LV_UNUSED(tab2);
|
||||||
LV_UNUSED(tab3);
|
LV_UNUSED(tab3);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tabview_09.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/tabview_09.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_tabview_get_content(void)
|
void test_tabview_get_content(void)
|
||||||
@@ -208,7 +208,7 @@ void test_tabview_set_act_non_existent(void)
|
|||||||
|
|
||||||
lv_tabview_set_active(tabview, 1, LV_ANIM_ON);
|
lv_tabview_set_active(tabview, 1, LV_ANIM_ON);
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("tabview_10.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/tabview_10.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_tabview_tab2_selected_event(void)
|
void test_tabview_tab2_selected_event(void)
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ void test_win_add_button(void)
|
|||||||
TEST_ASSERT_EQUAL(win_button_width, lv_obj_get_width(btn));
|
TEST_ASSERT_EQUAL(win_button_width, lv_obj_get_width(btn));
|
||||||
|
|
||||||
// Check the output remains visually consistent
|
// Check the output remains visually consistent
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("win_01.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/win_01.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_win_add_multiple_elements(void)
|
void test_win_add_multiple_elements(void)
|
||||||
@@ -155,7 +155,7 @@ void test_win_add_multiple_elements(void)
|
|||||||
TEST_ASSERT_EQUAL(win_button_close_width, lv_obj_get_width(btn));
|
TEST_ASSERT_EQUAL(win_button_close_width, lv_obj_get_width(btn));
|
||||||
|
|
||||||
// Check the output remains visually consistent
|
// Check the output remains visually consistent
|
||||||
TEST_ASSERT_EQUAL_SCREENSHOT("win_02.png");
|
TEST_ASSERT_EQUAL_SCREENSHOT("widgets/win_02.png");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||