/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_image.c | 331 TEST_ASSERT_EQUAL_INT(0, lv_image_get_rotation(img)); in test_image_ignore_transformation_settings_when_stretched() 335 TEST_ASSERT_EQUAL_INT(0, pivot.x); in test_image_ignore_transformation_settings_when_stretched() 336 TEST_ASSERT_EQUAL_INT(0, pivot.y); in test_image_ignore_transformation_settings_when_stretched() 342 TEST_ASSERT_EQUAL_INT(scale_x_original, lv_image_get_scale_x(img)); in test_image_ignore_transformation_settings_when_stretched() 343 TEST_ASSERT_EQUAL_INT(scale_y_original, lv_image_get_scale_y(img)); in test_image_ignore_transformation_settings_when_stretched() 359 TEST_ASSERT_EQUAL_INT(0, pivot.x); in test_image_ignore_transformation_settings_when_tiled() 360 TEST_ASSERT_EQUAL_INT(0, pivot.y); in test_image_ignore_transformation_settings_when_tiled() 361 TEST_ASSERT_EQUAL_INT(0, lv_image_get_rotation(img)); in test_image_ignore_transformation_settings_when_tiled() 362 TEST_ASSERT_EQUAL_INT(LV_SCALE_NONE, lv_image_get_scale_x(img)); in test_image_ignore_transformation_settings_when_tiled() 363 TEST_ASSERT_EQUAL_INT(LV_SCALE_NONE, lv_image_get_scale_y(img)); in test_image_ignore_transformation_settings_when_tiled() [all …]
|
D | test_textarea.c | 158 TEST_ASSERT_EQUAL_INT(5, lv_textarea_get_cursor_pos(obj)); in test_textarea_properties() 159 TEST_ASSERT_EQUAL_INT(5, lv_obj_get_property(obj, LV_PROPERTY_TEXTAREA_CURSOR_POS).num); in test_textarea_properties() 164 TEST_ASSERT_EQUAL_INT(1, lv_textarea_get_cursor_click_pos(obj)); in test_textarea_properties() 165 TEST_ASSERT_EQUAL_INT(1, lv_obj_get_property(obj, LV_PROPERTY_TEXTAREA_CURSOR_CLICK_POS).num); in test_textarea_properties() 182 TEST_ASSERT_EQUAL_INT(true, lv_textarea_get_one_line(obj)); in test_textarea_properties() 183 TEST_ASSERT_EQUAL_INT(true, lv_obj_get_property(obj, LV_PROPERTY_TEXTAREA_ONE_LINE).enable); in test_textarea_properties() 194 TEST_ASSERT_EQUAL_INT(10, lv_textarea_get_max_length(obj)); in test_textarea_properties() 195 TEST_ASSERT_EQUAL_INT(10, lv_obj_get_property(obj, LV_PROPERTY_TEXTAREA_MAX_LENGTH).num); in test_textarea_properties() 205 TEST_ASSERT_EQUAL_INT(true, lv_textarea_get_text_selection(obj)); in test_textarea_properties() 206 … TEST_ASSERT_EQUAL_INT(true, lv_obj_get_property(obj, LV_PROPERTY_TEXTAREA_TEXT_SELECTION).enable); in test_textarea_properties() [all …]
|
D | test_keyboard.c | 59 TEST_ASSERT_EQUAL_INT(LV_KEYBOARD_MODE_TEXT_UPPER, lv_keyboard_get_mode(obj)); in test_keyboard_properties() 60 …TEST_ASSERT_EQUAL_INT(LV_KEYBOARD_MODE_TEXT_UPPER, lv_obj_get_property(obj, LV_PROPERTY_KEYBOARD_M… in test_keyboard_properties() 65 TEST_ASSERT_EQUAL_INT(1, lv_keyboard_get_popovers(obj)); in test_keyboard_properties() 66 TEST_ASSERT_EQUAL_INT(1, lv_obj_get_property(obj, LV_PROPERTY_KEYBOARD_POPOVERS).num); in test_keyboard_properties() 71 TEST_ASSERT_EQUAL_INT(1, lv_keyboard_get_selected_button(obj)); in test_keyboard_properties() 72 TEST_ASSERT_EQUAL_INT(1, lv_obj_get_property(obj, LV_PROPERTY_KEYBOARD_SELECTED_BUTTON).num); in test_keyboard_properties()
|
D | test_animimg.c | 119 TEST_ASSERT_EQUAL_INT(lv_animimg_get_src_count(obj), 3); in test_animimg_property() 120 TEST_ASSERT_EQUAL_INT(3, lv_obj_get_property(obj, LV_PROPERTY_ANIMIMAGE_SRC_COUNT).num); in test_animimg_property() 125 TEST_ASSERT_EQUAL_INT(1000, lv_animimg_get_duration(obj)); in test_animimg_property() 126 TEST_ASSERT_EQUAL_INT(1000, lv_obj_get_property(obj, LV_PROPERTY_ANIMIMAGE_DURATION).num); in test_animimg_property() 131 TEST_ASSERT_EQUAL_INT(LV_ANIM_REPEAT_INFINITE, lv_animimg_get_repeat_count(obj)); in test_animimg_property() 132 …TEST_ASSERT_EQUAL_INT(LV_ANIM_REPEAT_INFINITE, lv_obj_get_property(obj, LV_PROPERTY_ANIMIMAGE_REPE… in test_animimg_property()
|
D | test_slider.c | 225 TEST_ASSERT_EQUAL_INT(lv_slider_get_min_value(obj), 10); in test_slider_properties() 226 TEST_ASSERT_EQUAL_INT(lv_slider_get_max_value(obj), 100); in test_slider_properties() 227 TEST_ASSERT_EQUAL_INT(10, lv_obj_get_property(obj, LV_PROPERTY_SLIDER_MIN_VALUE).num); in test_slider_properties() 228 TEST_ASSERT_EQUAL_INT(100, lv_obj_get_property(obj, LV_PROPERTY_SLIDER_MAX_VALUE).num); in test_slider_properties() 234 TEST_ASSERT_EQUAL_INT(lv_slider_get_value(obj), 50); in test_slider_properties() 235 TEST_ASSERT_EQUAL_INT(50, lv_obj_get_property(obj, LV_PROPERTY_SLIDER_VALUE).num); in test_slider_properties() 240 …TEST_ASSERT_EQUAL_INT(LV_SLIDER_MODE_RANGE, lv_obj_get_property(obj, LV_PROPERTY_SLIDER_MODE).num); in test_slider_properties() 246 TEST_ASSERT_EQUAL_INT(40, lv_slider_get_left_value(obj)); in test_slider_properties() 247 TEST_ASSERT_EQUAL_INT(40, lv_obj_get_property(obj, LV_PROPERTY_SLIDER_LEFT_VALUE).num); in test_slider_properties()
|
D | test_obj_property.c | 14 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); in test_obj_property_fail_on_invalid_id() 17 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); in test_obj_property_fail_on_invalid_id() 20 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); in test_obj_property_fail_on_invalid_id() 23 TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop)); in test_obj_property_fail_on_invalid_id() 27 TEST_ASSERT_EQUAL_INT(LV_RESULT_OK, lv_obj_set_property(obj, &prop)); in test_obj_property_fail_on_invalid_id() 307 TEST_ASSERT_EQUAL_INT(LV_LABEL_LONG_MODE_SCROLL, lv_label_get_long_mode(obj)); in test_label_properties() 308 …TEST_ASSERT_EQUAL_INT(LV_LABEL_LONG_MODE_SCROLL, lv_obj_get_property(obj, LV_PROPERTY_LABEL_LONG_M… in test_label_properties() 314 TEST_ASSERT_EQUAL_INT(2, lv_label_get_text_selection_start(obj)); in test_label_properties() 315 TEST_ASSERT_EQUAL_INT(2, lv_obj_get_property(obj, LV_PROPERTY_LABEL_TEXT_SELECTION_START).num); in test_label_properties() 320 TEST_ASSERT_EQUAL_INT(5, lv_label_get_text_selection_end(obj)); in test_label_properties() [all …]
|
D | test_dropdown.c | 441 TEST_ASSERT_EQUAL_INT(2, lv_obj_get_index(list)); in test_dropdown_should_list_on_top() 449 TEST_ASSERT_EQUAL_INT(1, lv_dropdown_get_option_index(dd, "ab")); in test_dropdown_get_options_should_check_lengths() 452 TEST_ASSERT_EQUAL_INT(3, lv_dropdown_get_option_index(dd, "Option")); in test_dropdown_get_options_should_check_lengths() 453 TEST_ASSERT_EQUAL_INT(-1, lv_dropdown_get_option_index(dd, "Option ")); in test_dropdown_get_options_should_check_lengths() 481 TEST_ASSERT_EQUAL_INT(1, lv_dropdown_get_selected(obj)); in test_dropdown_properties() 482 TEST_ASSERT_EQUAL_INT(1, lv_obj_get_property(obj, LV_PROPERTY_DROPDOWN_SELECTED).num); in test_dropdown_properties() 487 TEST_ASSERT_EQUAL_INT(LV_DIR_LEFT, lv_dropdown_get_dir(obj)); in test_dropdown_properties() 488 TEST_ASSERT_EQUAL_INT(LV_DIR_LEFT, lv_obj_get_property(obj, LV_PROPERTY_DROPDOWN_DIR).num); in test_dropdown_properties()
|
D | test_span.c | 39 TEST_ASSERT_EQUAL_INT(0, lv_spangroup_get_span_count(spangroup)); in test_spangroup_new_span_with_null_parameter_returns_null_object() 47 TEST_ASSERT_EQUAL_INT(1, lv_spangroup_get_span_count(spangroup)); in test_spangroup_new_span_with_valid_parameter_returns_not_null_object() 56 TEST_ASSERT_EQUAL_INT(0, lv_spangroup_get_span_count(spangroup)); in test_spangroup_delete_span_span_is_null() 276 TEST_ASSERT_EQUAL_INT(experimental_size, in test_spangroup_get_expand_width() 279 TEST_ASSERT_EQUAL_INT(constrained_size, in test_spangroup_get_expand_width()
|
D | test_btnmatrix.c | 351 TEST_ASSERT_EQUAL_INT(1, btnId); in test_button_matrix_key_event_works() 358 TEST_ASSERT_EQUAL_INT(0, btnId); in test_button_matrix_key_event_works() 365 TEST_ASSERT_EQUAL_INT(2, btnId); in test_button_matrix_key_event_works() 372 TEST_ASSERT_EQUAL_INT(0, btnId); in test_button_matrix_key_event_works()
|
D | test_roller.c | 369 TEST_ASSERT_EQUAL_INT(1, lv_roller_get_selected(obj)); in test_roller_properties() 370 TEST_ASSERT_EQUAL_INT(1, lv_obj_get_property(obj, LV_PROPERTY_ROLLER_SELECTED).num); in test_roller_properties()
|
/lvgl-latest/tests/src/test_cases/libs/ |
D | test_memmove.c | 31 TEST_ASSERT_EQUAL_INT(i, buf[i]); in test_memmove() 39 TEST_ASSERT_EQUAL_INT(i + 1, buf[i]); in test_memmove() 47 TEST_ASSERT_EQUAL_INT(0, buf[0]); in test_memmove() 49 TEST_ASSERT_EQUAL_INT(i - 1, buf[i]); in test_memmove()
|
/lvgl-latest/tests/src/test_cases/ |
D | test_profiler.c | 65 TEST_ASSERT_EQUAL_INT(output_line, 4); in test_profiler_normal() 66 TEST_ASSERT_EQUAL_INT(profiler_tick, 4); in test_profiler_normal() 93 TEST_ASSERT_EQUAL_INT(output_line, 0); in test_profiler_disable() 94 TEST_ASSERT_EQUAL_INT(profiler_tick, 0); in test_profiler_disable()
|
/lvgl-latest/tests/unity/ |
D | unity.h | 147 #define TEST_ASSERT_EQUAL_INT(expected, actual) … macro
|