/lvgl-latest/tests/src/test_cases/ |
D | test_anim_timeline.c | 49 TEST_ASSERT_EQUAL(0, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 53 TEST_ASSERT_EQUAL(700, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 57 TEST_ASSERT_EQUAL(105, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 61 TEST_ASSERT_EQUAL(213, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 65 TEST_ASSERT_EQUAL(319, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 69 TEST_ASSERT_EQUAL(426, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 73 TEST_ASSERT_EQUAL(533, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 77 TEST_ASSERT_EQUAL(639, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 81 TEST_ASSERT_EQUAL(350, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() 85 TEST_ASSERT_EQUAL(700, lv_obj_get_x(obj)); in test_anim_timeline_progress_1() [all …]
|
D | test_observer.c | 38 TEST_ASSERT_EQUAL(10, lv_subject_get_int(&subject)); in test_observer_add_remove() 39 TEST_ASSERT_EQUAL(10, current_v); in test_observer_add_remove() 43 TEST_ASSERT_EQUAL(15, lv_subject_get_int(&subject)); in test_observer_add_remove() 44 TEST_ASSERT_EQUAL(10, current_v); /*The observer cb is not called*/ in test_observer_add_remove() 55 TEST_ASSERT_EQUAL(5, lv_subject_get_int(&subject)); in test_observer_int() 56 TEST_ASSERT_EQUAL(5, lv_subject_get_previous_int(&subject)); in test_observer_int() 59 TEST_ASSERT_EQUAL(10, lv_subject_get_int(&subject)); in test_observer_int() 60 TEST_ASSERT_EQUAL(5, lv_subject_get_previous_int(&subject)); in test_observer_int() 63 TEST_ASSERT_EQUAL(15, lv_subject_get_int(&subject)); in test_observer_int() 64 TEST_ASSERT_EQUAL(10, lv_subject_get_previous_int(&subject)); in test_observer_int() [all …]
|
D | test_svg_anim.c | 27 TEST_ASSERT_EQUAL(LV_SVG_TAG_ANIMATE, anim_node->type); in testAnimate() 29 TEST_ASSERT_EQUAL(LV_SVG_ATTR_X, at); in testAnimate() 34 TEST_ASSERT_EQUAL(ft, LV_SVG_ANIM_FREEZE); in testAnimate() 56 TEST_ASSERT_EQUAL(LV_SVG_TAG_SET, anim_node->type); in testSet() 58 TEST_ASSERT_EQUAL(LV_SVG_ATTR_X, at); in testSet() 80 TEST_ASSERT_EQUAL(LV_SVG_TAG_ANIMATE_MOTION, anim_node->type); in testAnimateMotion() 84 TEST_ASSERT_EQUAL(LV_SVG_TAG_MPATH, mpath_node->type); in testAnimateMotion() 90 TEST_ASSERT_EQUAL(rp, 0); in testAnimateMotion() 106 TEST_ASSERT_EQUAL(LV_SVG_TAG_ANIMATE_MOTION, anim_node->type); in testAnimateMotion() 109 TEST_ASSERT_EQUAL(lb->length, 1); in testAnimateMotion() [all …]
|
D | test_screen_load.c | 44 TEST_ASSERT_EQUAL(lv_screen_active(), screen_with_anim_2); in test_screen_load_with_delete_no_crash() 49 TEST_ASSERT_EQUAL(lv_obj_is_valid(screen_with_anim_1), false); in test_screen_load_with_delete_no_crash() 50 TEST_ASSERT_EQUAL(lv_obj_is_valid(screen_with_anim_2), false); in test_screen_load_with_delete_no_crash() 51 TEST_ASSERT_EQUAL(lv_obj_is_valid(screen_with_anim_3), true); in test_screen_load_with_delete_no_crash() 78 TEST_ASSERT_EQUAL(lv_screen_active(), screen_with_anim_3); in test_screen_load_with_delete_no_crash2() 83 TEST_ASSERT_EQUAL(lv_obj_is_valid(screen_with_anim_1), false); in test_screen_load_with_delete_no_crash2() 84 TEST_ASSERT_EQUAL(lv_obj_is_valid(screen_with_anim_2), false); in test_screen_load_with_delete_no_crash2() 85 TEST_ASSERT_EQUAL(lv_obj_is_valid(screen_with_anim_3), false); in test_screen_load_with_delete_no_crash2() 86 TEST_ASSERT_EQUAL(lv_obj_is_valid(screen_with_anim_4), true); in test_screen_load_with_delete_no_crash2() 119 TEST_ASSERT_EQUAL(screen_1_unloaded_called, true); in test_screen_load_with_delete_event() [all …]
|
D | test_fs.c | 42 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read() 47 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read() 55 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read() 59 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in test_read() 96 TEST_ASSERT_EQUAL(br, len); in read_range() 100 TEST_ASSERT_EQUAL(buf_rd[i], from + i); in read_range() 110 TEST_ASSERT_EQUAL(br, len); in read_next() 114 TEST_ASSERT_EQUAL(buf_rd[i], from + i); in read_next() 131 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in read_random_drv() 138 TEST_ASSERT_EQUAL(LV_FS_RES_OK, res); in read_random_drv() [all …]
|
D | test_config.c | 11 TEST_ASSERT_EQUAL(130, LV_DPI_DEF); in test_config() 12 TEST_ASSERT_EQUAL(130, lv_display_get_dpi(NULL)); in test_config() 13 TEST_ASSERT_EQUAL(800, LV_HOR_RES); in test_config() 14 TEST_ASSERT_EQUAL(800, lv_display_get_horizontal_resolution(NULL)); in test_config() 15 TEST_ASSERT_EQUAL(480, LV_VER_RES); in test_config() 16 TEST_ASSERT_EQUAL(480, lv_display_get_vertical_resolution(NULL)); in test_config() 17 TEST_ASSERT_EQUAL(32, LV_COLOR_DEPTH); in test_config()
|
D | test_circle_buf.c | 25 if(i < circle_buf_CAPACITY) TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in setUp() 26 else TEST_ASSERT_EQUAL(LV_RESULT_INVALID, res); in setUp() 50 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_circle_buf_read_write_peek_values() 62 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_circle_buf_read_write_peek_values() 77 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_circle_buf_read_write_peek_values() 81 TEST_ASSERT_EQUAL(LV_RESULT_INVALID, res); in test_circle_buf_read_write_peek_values() 99 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_circle_buf_skip_values() 110 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_circle_buf_skip_values() 113 TEST_ASSERT_EQUAL(LV_RESULT_INVALID, res); in test_circle_buf_skip_values() 132 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_circle_buf_read_after_read_and_write() [all …]
|
D | test_anim.c | 44 TEST_ASSERT_EQUAL(19, var); in test_anim_delete() 52 TEST_ASSERT_EQUAL(39, var); in test_anim_delete() 59 TEST_ASSERT_EQUAL(39, var); in test_anim_delete() 76 TEST_ASSERT_EQUAL(19, var); in test_anim_delete_custom() 84 TEST_ASSERT_EQUAL(39, var); in test_anim_delete_custom() 91 TEST_ASSERT_EQUAL(39, var); in test_anim_delete_custom() 107 TEST_ASSERT_EQUAL(39, var); in test_anim_pause() 112 TEST_ASSERT_EQUAL(39, var); in test_anim_pause() 117 TEST_ASSERT_EQUAL(59, var); in test_anim_pause() 120 TEST_ASSERT_EQUAL(100, var); in test_anim_pause() [all …]
|
D | test_style.c | 56 TEST_ASSERT_EQUAL(LV_STYLE_NUM_BUILT_IN_PROPS + initial_custom_props, prop); in test_custom_prop_ids() 59 TEST_ASSERT_EQUAL(fake_flag, lv_style_prop_lookup_flags(prop)); in test_custom_prop_ids() 65 … TEST_ASSERT_EQUAL(initial_custom_props + max_props_to_register, lv_style_get_num_custom_props()); in test_custom_prop_ids() 71 TEST_ASSERT_EQUAL(LV_GLOBAL_DEFAULT()->style_custom_table_size, 64); in test_custom_prop_ids() 86 TEST_ASSERT_EQUAL(51, lv_obj_get_style_width(obj, LV_PART_MAIN)); in test_const_style() 87 TEST_ASSERT_EQUAL(50, lv_obj_get_style_height(obj, LV_PART_MAIN)); in test_const_style() 109 TEST_ASSERT_EQUAL(true, replaced); in test_style_replacement() 114 TEST_ASSERT_EQUAL(false, replaced); in test_style_replacement() 130 TEST_ASSERT_EQUAL(false, lv_obj_has_style_prop(obj, LV_PART_MAIN, LV_STYLE_OUTLINE_COLOR)); in test_style_has_prop() 131 TEST_ASSERT_EQUAL(false, lv_obj_has_style_prop(obj, LV_PART_MAIN, LV_STYLE_OUTLINE_WIDTH)); in test_style_has_prop() [all …]
|
D | test_event.c | 95 TEST_ASSERT_EQUAL(pre_cnt_1, 1); in test_event_stop_processing() 96 TEST_ASSERT_EQUAL(pre_cnt_2, 1); in test_event_stop_processing() 97 TEST_ASSERT_EQUAL(post_cnt_1, 1); in test_event_stop_processing() 98 TEST_ASSERT_EQUAL(post_cnt_2, 1); in test_event_stop_processing() 107 TEST_ASSERT_EQUAL(pre_cnt_1, 1); in test_event_stop_processing() 108 TEST_ASSERT_EQUAL(pre_cnt_2, 0); in test_event_stop_processing() 109 TEST_ASSERT_EQUAL(post_cnt_1, 0); in test_event_stop_processing() 110 TEST_ASSERT_EQUAL(post_cnt_2, 0); in test_event_stop_processing() 119 TEST_ASSERT_EQUAL(pre_cnt_1, 1); in test_event_stop_processing() 120 TEST_ASSERT_EQUAL(pre_cnt_2, 1); in test_event_stop_processing() [all …]
|
D | test_svg.c | 56 TEST_ASSERT_EQUAL(lv_array_size(&node3->attrs), 1); in testNodeTree() 68 TEST_ASSERT_EQUAL(lv_array_size(&svg_node1->attrs), 2); in testSvgElement() 77 TEST_ASSERT_EQUAL(0, LV_ARRAY_GET(&svg_node_viewbox->attrs, 0, lv_svg_attr_t)->class_type); in testSvgElement() 97 TEST_ASSERT_EQUAL(0, LV_ARRAY_GET(&svg_node_viewbox3->attrs, 0, lv_svg_attr_t)->class_type); in testSvgElement() 148 TEST_ASSERT_EQUAL(lv_array_size(&svg_node_ar->attrs), 1); in testSvgElement() 154 TEST_ASSERT_EQUAL((LV_ARRAY_GET(&svg_node_ar->attrs, 0, lv_svg_attr_t))->value.uval, 2); in testSvgElement() 160 TEST_ASSERT_EQUAL((LV_ARRAY_GET(&svg_node_ar->attrs, 0, lv_svg_attr_t))->value.uval, 5); in testSvgElement() 166 TEST_ASSERT_EQUAL((LV_ARRAY_GET(&svg_node_ar->attrs, 0, lv_svg_attr_t))->value.uval, 6); in testSvgElement() 172 TEST_ASSERT_EQUAL((LV_ARRAY_GET(&svg_node_ar->attrs, 0, lv_svg_attr_t))->value.uval, 8); in testSvgElement() 178 TEST_ASSERT_EQUAL((LV_ARRAY_GET(&svg_node_ar->attrs, 0, lv_svg_attr_t))->value.uval, 10); in testSvgElement() [all …]
|
D | test_draw_buf_stride.c | 65 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_draw_buf_stride_adjust() 80 TEST_ASSERT_EQUAL(LV_RESULT_INVALID, res); in test_draw_buf_stride_adjust() 84 TEST_ASSERT_EQUAL(LV_RESULT_INVALID, res); in test_draw_buf_stride_adjust() 97 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_draw_buf_stride_adjust() 104 TEST_ASSERT_EQUAL(LV_RESULT_OK, res); in test_draw_buf_stride_adjust()
|
/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_obj_tree.c | 12 TEST_ASSERT_EQUAL(lv_obj_get_child_count(lv_screen_active()), 0); in test_obj_tree_1() 21 TEST_ASSERT_EQUAL(lv_obj_get_child_count(lv_screen_active()), 3); in test_obj_tree_2() 24 TEST_ASSERT_EQUAL(lv_obj_get_child_count(lv_screen_active()), 2); in test_obj_tree_2() 27 TEST_ASSERT_EQUAL(lv_obj_get_child_count(lv_screen_active()), 0); in test_obj_tree_2() 52 TEST_ASSERT_EQUAL(child1_parent_before, parent1); in test_obj_tree_3() 53 TEST_ASSERT_EQUAL(child2_parent_before, parent2); in test_obj_tree_3() 56 TEST_ASSERT_EQUAL(lv_obj_get_child_count(parent1), 1); in test_obj_tree_3() 57 TEST_ASSERT_EQUAL(lv_obj_get_index(child1), 0); in test_obj_tree_3() 58 TEST_ASSERT_EQUAL(lv_obj_get_child(parent1, 0), child1); in test_obj_tree_3() 60 TEST_ASSERT_EQUAL(lv_obj_get_child_count(parent2), 1); in test_obj_tree_3() [all …]
|
D | test_win.c | 33 TEST_ASSERT_EQUAL(2, lv_obj_get_child_count(win)); in test_win_should_have_valid_documented_default_values() 38 TEST_ASSERT_EQUAL(header, lv_obj_get_child(win, 0)); in test_win_should_have_valid_documented_default_values() 39 TEST_ASSERT_EQUAL(content, lv_obj_get_child(win, 1)); in test_win_should_have_valid_documented_default_values() 42 TEST_ASSERT_EQUAL(lv_display_get_dpi(lv_obj_get_display(win)) / 2, lv_obj_get_height(header)); in test_win_should_have_valid_documented_default_values() 43 TEST_ASSERT_EQUAL(0, lv_obj_get_child_count(header)); in test_win_should_have_valid_documented_default_values() 46 TEST_ASSERT_EQUAL(0, lv_obj_get_child_count(content)); in test_win_should_have_valid_documented_default_values() 61 TEST_ASSERT_EQUAL(2, lv_obj_get_child_count(win)); in test_win_add_title_single() 62 TEST_ASSERT_EQUAL(1, lv_obj_get_child_count(header)); in test_win_add_title_single() 67 TEST_ASSERT_EQUAL(1, lv_label_get_long_mode(title)); in test_win_add_title_single() 83 TEST_ASSERT_EQUAL(2, lv_obj_get_child_count(win)); in test_win_add_title_multiple() [all …]
|
D | test_spinbox.c | 83 TEST_ASSERT_EQUAL(1, lv_spinbox_get_step(spinbox_zero_min_range)); in test_spinbox_position_selection() 87 TEST_ASSERT_EQUAL(10, lv_spinbox_get_step(spinbox_zero_min_range)); in test_spinbox_position_selection() 94 TEST_ASSERT_EQUAL(1, lv_spinbox_get_step(tmp)); in test_spinbox_position_selection() 111 TEST_ASSERT_EQUAL(range_max, lv_spinbox_get_value(tmp)); in test_spinbox_set_range() 117 TEST_ASSERT_EQUAL(range_min, lv_spinbox_get_value(tmp)); in test_spinbox_set_range() 129 TEST_ASSERT_EQUAL(1, lv_spinbox_get_step(tmp)); in test_spinbox_step_prev() 135 TEST_ASSERT_EQUAL(10, lv_spinbox_get_step(tmp)); in test_spinbox_step_prev() 141 TEST_ASSERT_EQUAL(10, lv_spinbox_get_step(tmp)); in test_spinbox_step_prev() 166 TEST_ASSERT_EQUAL(1, lv_spinbox_get_value(spinbox_events)); in test_spinbox_event_key() 172 TEST_ASSERT_EQUAL(0, lv_spinbox_get_value(spinbox_events)); in test_spinbox_event_key() [all …]
|
D | test_label.c | 41 TEST_ASSERT_EQUAL(lv_label_get_long_mode(label), LV_LABEL_LONG_MODE_WRAP); in test_label_creation() 76 TEST_ASSERT_EQUAL(expected_first_letter_point.x, first_letter_point.x); in test_label_get_letter_pos_align_left() 77 TEST_ASSERT_EQUAL(expected_first_letter_point.y, first_letter_point.y); in test_label_get_letter_pos_align_left() 81 TEST_ASSERT_EQUAL(expected_last_letter_point.x, last_letter_point.x); in test_label_get_letter_pos_align_left() 82 TEST_ASSERT_EQUAL(expected_last_letter_point.y, last_letter_point.y); in test_label_get_letter_pos_align_left() 104 TEST_ASSERT_EQUAL(expected_first_letter_point.x, first_letter_point.x); in test_label_get_letter_pos_align_left_on_empty_text() 105 TEST_ASSERT_EQUAL(expected_first_letter_point.y, first_letter_point.y); in test_label_get_letter_pos_align_left_on_empty_text() 109 TEST_ASSERT_EQUAL(expected_last_letter_point.x, last_letter_point.x); in test_label_get_letter_pos_align_left_on_empty_text() 110 TEST_ASSERT_EQUAL(expected_last_letter_point.y, last_letter_point.y); in test_label_get_letter_pos_align_left_on_empty_text() 138 TEST_ASSERT_EQUAL(expected_first_letter_point.x, first_letter_point.x); in test_label_long_text_multiline_get_letter_pos_align_left() [all …]
|
D | test_dropdown.c | 22 TEST_ASSERT_EQUAL(2, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete() 26 TEST_ASSERT_EQUAL(4, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete() 29 TEST_ASSERT_EQUAL(4, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete() 32 TEST_ASSERT_EQUAL(4, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete() 36 TEST_ASSERT_EQUAL(6, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete() 38 TEST_ASSERT_EQUAL(6, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete() 40 TEST_ASSERT_EQUAL(6, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete() 42 TEST_ASSERT_EQUAL(6, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete() 45 TEST_ASSERT_EQUAL(4, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete() 48 TEST_ASSERT_EQUAL(0, lv_obj_get_child_count(lv_screen_active())); in test_dropdown_create_delete() [all …]
|
D | test_led.c | 59 TEST_ASSERT_EQUAL(150, lv_led_get_brightness(led)); in test_led_set_brightness_works() 62 TEST_ASSERT_EQUAL(LV_LED_BRIGHT_MIN, lv_led_get_brightness(led)); in test_led_set_brightness_works() 65 TEST_ASSERT_EQUAL(255, lv_led_get_brightness(led)); in test_led_set_brightness_works() 73 TEST_ASSERT_EQUAL(LV_LED_BRIGHT_MAX, lv_led_get_brightness(led)); in test_led_on_off_works() 76 TEST_ASSERT_EQUAL(LV_LED_BRIGHT_MIN, lv_led_get_brightness(led)); in test_led_on_off_works() 79 TEST_ASSERT_EQUAL(LV_LED_BRIGHT_MAX, lv_led_get_brightness(led)); in test_led_on_off_works() 88 TEST_ASSERT_EQUAL(LV_LED_BRIGHT_MIN, lv_led_get_brightness(led)); in test_led_toggle_works() 90 TEST_ASSERT_EQUAL(LV_LED_BRIGHT_MAX, lv_led_get_brightness(led)); in test_led_toggle_works() 92 TEST_ASSERT_EQUAL(LV_LED_BRIGHT_MIN, lv_led_get_brightness(led)); in test_led_toggle_works() 100 TEST_ASSERT_EQUAL(LV_LED_BRIGHT_MAX, lv_led_get_brightness(led)); in test_led_get_brightness_works() [all …]
|
D | test_scale.c | 331 TEST_ASSERT_EQUAL(section->main_style, §ion_main_line_style); in test_scale_set_style() 338 TEST_ASSERT_EQUAL(section->main_style, §ion_main_line_style); in test_scale_set_style() 339 TEST_ASSERT_EQUAL(section->indicator_style, §ion_label_style); in test_scale_set_style() 346 TEST_ASSERT_EQUAL(section->main_style, §ion_main_line_style); in test_scale_set_style() 347 TEST_ASSERT_EQUAL(section->indicator_style, §ion_label_style); in test_scale_set_style() 348 TEST_ASSERT_EQUAL(section->items_style, §ion_minor_tick_style); in test_scale_set_style() 356 TEST_ASSERT_EQUAL(section->main_style, §ion_main_line_style); in test_scale_set_style() 357 TEST_ASSERT_EQUAL(section->indicator_style, §ion_label_style); in test_scale_set_style() 358 TEST_ASSERT_EQUAL(section->items_style, §ion_minor_tick_style); in test_scale_set_style() 378 TEST_ASSERT_EQUAL(5U, scale_widget->custom_label_cnt); in test_scale_custom_labels_count() [all …]
|
D | test_roller.c | 73 TEST_ASSERT_EQUAL(expected_index, actual_index); in test_roller_get_selected_option() 108 TEST_ASSERT_EQUAL(expected_index, actual_index); in test_roller_infinite_mode_get_selected_option() 120 TEST_ASSERT_EQUAL(1, actual_index); in test_roller_infinite_mode_get_selected_option() 131 TEST_ASSERT_EQUAL(0, lv_roller_get_selected(roller)); in test_roller_set_selected_option_str() 137 TEST_ASSERT_EQUAL(1, lv_roller_get_selected(roller)); in test_roller_set_selected_option_str() 144 TEST_ASSERT_EQUAL(1, lv_roller_get_selected(roller)); in test_roller_set_selected_option_str() 161 TEST_ASSERT_EQUAL(expected_index, actual_index); in test_roller_keypad_events() 168 TEST_ASSERT_EQUAL(expected_index, actual_index); in test_roller_keypad_events() 175 TEST_ASSERT_EQUAL(expected_index, actual_index); in test_roller_keypad_events() 182 TEST_ASSERT_EQUAL(expected_index, actual_index); in test_roller_keypad_events()
|
D | test_switch.c | 47 TEST_ASSERT_EQUAL(state, LV_STATE_DEFAULT); in test_switch_should_have_default_state_after_being_created() 95 TEST_ASSERT_EQUAL(0, extra_size); in test_switch_should_not_have_extra_draw_size_at_creation() 115 TEST_ASSERT_EQUAL(expected, actual); in test_switch_should_update_extra_draw_size_after_editing_padding() 124 TEST_ASSERT_EQUAL(1, value_changed_event_cnt); in test_switch_should_trigger_value_changed_event_only_once()
|
D | test_span.c | 129 TEST_ASSERT_EQUAL(align, lv_spangroup_get_align(spangroup)); in test_spangroup_set_align() 137 TEST_ASSERT_EQUAL(overflow, lv_spangroup_get_overflow(spangroup)); in test_spangroup_set_overflow() 145 TEST_ASSERT_EQUAL(LV_SPAN_OVERFLOW_ELLIPSIS, lv_spangroup_get_overflow(spangroup)); in test_spangroup_set_overflow_invalid_parameters_overflow_not_changed() 154 TEST_ASSERT_EQUAL(indent, lv_spangroup_get_indent(spangroup)); in test_spangroup_set_indent() 160 TEST_ASSERT_EQUAL(LV_SPAN_MODE_EXPAND, lv_spangroup_get_mode(spangroup)); in test_spangroup_set_mode() 163 TEST_ASSERT_EQUAL(LV_SPAN_MODE_BREAK, lv_spangroup_get_mode(spangroup)); in test_spangroup_set_mode() 166 TEST_ASSERT_EQUAL(LV_SPAN_MODE_FIXED, lv_spangroup_get_mode(spangroup)); in test_spangroup_set_mode() 173 TEST_ASSERT_EQUAL(LV_SPAN_MODE_EXPAND, lv_spangroup_get_mode(spangroup)); in test_spangroup_set_mode_invalid_parameter_mode_not_changed() 206 TEST_ASSERT_EQUAL(0, (uint32_t)max_line); in test_spangroup_get_max_line_h() 212 TEST_ASSERT_EQUAL(16, (uint32_t)max_line); in test_spangroup_get_max_line_h() [all …]
|
D | test_slider.c | 104 TEST_ASSERT_EQUAL(0U, ptr->left_knob_focus); in test_slider_range_mode_should_leave_edit_mode_if_released() 144 TEST_ASSERT_EQUAL(0U, ptr->left_knob_focus); in test_slider_normal_mode_should_leave_edit_mode_if_released() 164 TEST_ASSERT_EQUAL(80, lv_slider_get_value(sliderRangeMode)); /*Updated?*/ in test_ranged_mode_adjust_with_encoder() 165 TEST_ASSERT_EQUAL(10, lv_slider_get_left_value(sliderRangeMode)); /*Maintained?*/ in test_ranged_mode_adjust_with_encoder() 172 TEST_ASSERT_EQUAL(80, lv_slider_get_value(sliderRangeMode)); /*Maintained?*/ in test_ranged_mode_adjust_with_encoder() 173 TEST_ASSERT_EQUAL(15, lv_slider_get_left_value(sliderRangeMode)); /*Updated?*/ in test_ranged_mode_adjust_with_encoder()
|
D | test_msgbox.c | 162 TEST_ASSERT_EQUAL(is_height_size_content, 1); in test_msgbox_content_auto_height() 176 TEST_ASSERT_EQUAL(h_obj_content, h_msgbox_element_sum); in test_msgbox_content_auto_height() 182 TEST_ASSERT_EQUAL(is_height_size_content, 0); in test_msgbox_content_auto_height() 192 TEST_ASSERT_EQUAL(h_obj_content, h_msgbox_element_sum); in test_msgbox_content_auto_height()
|
/lvgl-latest/tests/src/test_cases/libs/ |
D | test_barcode.c | 39 TEST_ASSERT_EQUAL(lv_barcode_get_scale(barcode), scale); in test_barcode_normal() 45 TEST_ASSERT_EQUAL(res, LV_RESULT_OK); in test_barcode_normal() 52 TEST_ASSERT_EQUAL(res, LV_RESULT_OK); in test_barcode_normal() 61 TEST_ASSERT_EQUAL(res, LV_RESULT_OK); in test_barcode_normal() 68 TEST_ASSERT_EQUAL(res, LV_RESULT_OK); in test_barcode_normal()
|