/lvgl-latest/tests/src/test_cases/ |
D | test_dropdown.c | 20 TEST_ASSERT_EQUAL(2, lv_obj_get_child_cnt(lv_scr_act())); in test_dropdown_create_delete() 24 TEST_ASSERT_EQUAL(4, lv_obj_get_child_cnt(lv_scr_act())); in test_dropdown_create_delete() 27 TEST_ASSERT_EQUAL(4, lv_obj_get_child_cnt(lv_scr_act())); in test_dropdown_create_delete() 30 TEST_ASSERT_EQUAL(4, lv_obj_get_child_cnt(lv_scr_act())); in test_dropdown_create_delete() 34 TEST_ASSERT_EQUAL(6, lv_obj_get_child_cnt(lv_scr_act())); in test_dropdown_create_delete() 36 TEST_ASSERT_EQUAL(6, lv_obj_get_child_cnt(lv_scr_act())); in test_dropdown_create_delete() 38 TEST_ASSERT_EQUAL(6, lv_obj_get_child_cnt(lv_scr_act())); in test_dropdown_create_delete() 40 TEST_ASSERT_EQUAL(6, lv_obj_get_child_cnt(lv_scr_act())); in test_dropdown_create_delete() 43 TEST_ASSERT_EQUAL(4, lv_obj_get_child_cnt(lv_scr_act())); in test_dropdown_create_delete() 46 TEST_ASSERT_EQUAL(0, lv_obj_get_child_cnt(lv_scr_act())); in test_dropdown_create_delete() [all …]
|
D | test_config.c | 10 TEST_ASSERT_EQUAL(130, LV_DPI_DEF); in test_config() 11 TEST_ASSERT_EQUAL(130, lv_disp_get_dpi(NULL)); in test_config() 12 TEST_ASSERT_EQUAL(800, LV_HOR_RES); in test_config() 13 TEST_ASSERT_EQUAL(800, lv_disp_get_hor_res(NULL)); in test_config() 14 TEST_ASSERT_EQUAL(480, LV_VER_RES); in test_config() 15 TEST_ASSERT_EQUAL(480, lv_disp_get_ver_res(NULL)); in test_config() 16 TEST_ASSERT_EQUAL(32, LV_COLOR_DEPTH); in test_config()
|
D | test_obj_tree.c | 11 TEST_ASSERT_EQUAL(lv_obj_get_child_cnt(lv_scr_act()), 0); in test_obj_tree_1() 20 TEST_ASSERT_EQUAL(lv_obj_get_child_cnt(lv_scr_act()), 3); in test_obj_tree_2() 23 TEST_ASSERT_EQUAL(lv_obj_get_child_cnt(lv_scr_act()), 2); in test_obj_tree_2() 26 TEST_ASSERT_EQUAL(lv_obj_get_child_cnt(lv_scr_act()), 0); in test_obj_tree_2()
|
D | test_fs.c | 26 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read() 31 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read() 39 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read() 43 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read()
|
D | test_style.c | 54 TEST_ASSERT_EQUAL(_LV_STYLE_NUM_BUILT_IN_PROPS + initial_custom_props, prop); in test_custom_prop_ids() 57 TEST_ASSERT_EQUAL(fake_flag, _lv_style_prop_lookup_flags(prop)); in test_custom_prop_ids() 63 … TEST_ASSERT_EQUAL(initial_custom_props + max_props_to_register, lv_style_get_num_custom_props()); in test_custom_prop_ids() 70 TEST_ASSERT_EQUAL(_lv_style_custom_prop_flag_lookup_table_size, 96); in test_custom_prop_ids() 90 TEST_ASSERT_EQUAL(0, prop_id & LV_STYLE_PROP_META_MASK); in test_id_meta_overrun()
|
D | test_slider.c | 103 TEST_ASSERT_EQUAL(0U, ptr->left_knob_focus); in test_slider_range_mode_should_leave_edit_mode_if_released() 143 TEST_ASSERT_EQUAL(0U, ptr->left_knob_focus); in test_slider_normal_mode_should_leave_edit_mode_if_released() 163 TEST_ASSERT_EQUAL(80, lv_slider_get_value(sliderRangeMode)); /*Updated?*/ in test_ranged_mode_adjust_with_encoder() 164 TEST_ASSERT_EQUAL(10, lv_slider_get_left_value(sliderRangeMode)); /*Maintained?*/ in test_ranged_mode_adjust_with_encoder() 171 TEST_ASSERT_EQUAL(80, lv_slider_get_value(sliderRangeMode)); /*Maintained?*/ in test_ranged_mode_adjust_with_encoder() 172 TEST_ASSERT_EQUAL(15, lv_slider_get_left_value(sliderRangeMode)); /*Updated?*/ in test_ranged_mode_adjust_with_encoder()
|
D | test_switch.c | 46 TEST_ASSERT_EQUAL(state, LV_STATE_DEFAULT); in test_switch_should_have_default_state_after_being_created() 99 TEST_ASSERT_EQUAL(0, extra_size); in test_switch_should_not_have_extra_draw_size_at_creation() 119 TEST_ASSERT_EQUAL(expected, actual); in test_switch_should_update_extra_draw_size_after_editing_padding() 128 TEST_ASSERT_EQUAL(1, value_changed_event_cnt); in test_switch_should_trigger_value_changed_event_only_once()
|
D | test_line.c | 83 TEST_ASSERT_EQUAL(initial_extra_draw_size, _lv_obj_get_ext_draw_size(line)); in test_line_should_update_extra_draw_size_based_on_style() 92 TEST_ASSERT_EQUAL(final_extra_draw_size, _lv_obj_get_ext_draw_size(line)); in test_line_should_update_extra_draw_size_based_on_style()
|
D | test_bar.c | 23 TEST_ASSERT_EQUAL(0, lv_bar_get_min_value(bar)); in test_bar_should_have_valid_default_attributes() 24 TEST_ASSERT_EQUAL(100, lv_bar_get_max_value(bar)); in test_bar_should_have_valid_default_attributes() 25 TEST_ASSERT_EQUAL(LV_BAR_MODE_NORMAL, lv_bar_get_mode(bar)); in test_bar_should_have_valid_default_attributes()
|
D | test_demo_stress.c | 28 TEST_ASSERT_EQUAL(mem_before, lv_test_get_free_mem()); in test_demo_stress()
|
D | test_snapshot.c | 34 TEST_ASSERT_EQUAL(initial_available_memory, final_available_memory); in test_snapshot_should_not_leak_memory()
|
D | test_textarea.c | 25 TEST_ASSERT_EQUAL(0U, lv_textarea_get_one_line(textarea)); in test_textarea_should_have_valid_documented_defualt_values()
|
/lvgl-latest/tests/unity/ |
D | unity.h | 370 #define TEST_ASSERT_EQUAL(expected, actual) … macro 374 #define TEST_ASSERT_EQUAL(expected, actual) … macro 378 #define TEST_ASSERT_EQUAL(expected, actual) … macro 382 #define TEST_ASSERT_EQUAL(expected, actual) … macro 386 #define TEST_ASSERT_EQUAL(expected, actual) … macro
|