/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_textarea.c | 28 TEST_ASSERT_EQUAL_STRING(textarea_default_text, lv_textarea_get_placeholder_text(textarea)); in test_textarea_should_have_valid_documented_default_values() 29 TEST_ASSERT_EQUAL_STRING(textarea_default_text, lv_textarea_get_text(textarea)); in test_textarea_should_have_valid_documented_default_values() 42 TEST_ASSERT_EQUAL_STRING(text, lv_textarea_get_text(textarea)); in test_textarea_should_return_actual_text_when_password_mode_is_enabled() 76 TEST_ASSERT_EQUAL_STRING(text, lv_textarea_get_placeholder_text(textarea)); in test_textarea_should_update_placeholder_text() 80 TEST_ASSERT_EQUAL_STRING(new_placeholder, lv_textarea_get_placeholder_text(textarea)); in test_textarea_should_update_placeholder_text() 84 TEST_ASSERT_EQUAL_STRING("", lv_textarea_get_placeholder_text(textarea)); in test_textarea_should_update_placeholder_text() 94 TEST_ASSERT_EQUAL_STRING(accepted_list, lv_textarea_get_text(textarea)); in test_textarea_should_keep_only_accepted_chars() 102 TEST_ASSERT_EQUAL_STRING(textarea_default_text, lv_textarea_get_text(textarea)); in test_textarea_in_one_line_mode_should_ignore_line_break_characters() 105 TEST_ASSERT_EQUAL_STRING(textarea_default_text, lv_textarea_get_text(textarea)); in test_textarea_in_one_line_mode_should_ignore_line_break_characters() 115 TEST_ASSERT_EQUAL_STRING("OOOOO", lv_label_get_text(lv_textarea_get_label(textarea))); in test_textarea_should_hide_password_characters() [all …]
|
D | test_dropdown.c | 59 TEST_ASSERT_EQUAL_STRING("Option 1\nOption 2\nOption 3", lv_dropdown_get_options(dd1)); in test_dropdown_set_options() 63 TEST_ASSERT_EQUAL_STRING("a1\nb2\nc3\nd4\ne5\nf6", lv_dropdown_get_options(dd1)); in test_dropdown_set_options() 74 TEST_ASSERT_EQUAL_STRING("x0\na1\nb2\nc3\nd4\ne5\nf6", lv_dropdown_get_options(dd1)); in test_dropdown_set_options() 78 TEST_ASSERT_EQUAL_STRING("x0\na1\nb2\ny0\nc3\nd4\ne5\nf6", lv_dropdown_get_options(dd1)); in test_dropdown_set_options() 82 TEST_ASSERT_EQUAL_STRING("x0\na1\nb2\ny0\nc3\nd4\ne5\nf6\nz0", lv_dropdown_get_options(dd1)); in test_dropdown_set_options() 86 TEST_ASSERT_EQUAL_STRING("", lv_dropdown_get_options(dd1)); in test_dropdown_set_options() 92 TEST_ASSERT_EQUAL_STRING("a1\nb2\nc3\nd4\ne5\nf6", lv_dropdown_get_options(dd1)); in test_dropdown_set_options() 96 TEST_ASSERT_EQUAL_STRING("x0\na1\nb2\nc3\nd4\ne5\nf6", lv_dropdown_get_options(dd1)); in test_dropdown_set_options() 100 TEST_ASSERT_EQUAL_STRING("x0\na1\nb2\ny0\nc3\nd4\ne5\nf6", lv_dropdown_get_options(dd1)); in test_dropdown_set_options() 104 TEST_ASSERT_EQUAL_STRING("x0\na1\nb2\ny0\nc3\nd4\ne5\nf6\nz0", lv_dropdown_get_options(dd1)); in test_dropdown_set_options() [all …]
|
D | test_list.c | 24 TEST_ASSERT_EQUAL_STRING(message, lv_list_get_button_text(list, button_ok)); in test_list_get_text_from_added_button() 32 TEST_ASSERT_EQUAL_STRING(message, lv_list_get_button_text(list, button_ok)); in test_list_get_text_from_button_without_symbol() 40 TEST_ASSERT_EQUAL_STRING(empty_text, lv_list_get_button_text(list, button_ok)); in test_list_gets_empty_text_from_button_without_text() 48 TEST_ASSERT_EQUAL_STRING(message, lv_label_get_text(label)); in test_list_get_text_from_label()
|
D | test_btnmatrix.c | 32 TEST_ASSERT_EQUAL_STRING(map[0], "Btn1"); in test_button_matrix_creation() 33 TEST_ASSERT_EQUAL_STRING(map[1], "Btn2"); in test_button_matrix_creation() 34 TEST_ASSERT_EQUAL_STRING(map[2], "Btn3"); in test_button_matrix_creation() 35 TEST_ASSERT_EQUAL_STRING(map[3], "\n"); in test_button_matrix_creation() 36 TEST_ASSERT_EQUAL_STRING(map[4], "Btn4"); in test_button_matrix_creation() 37 TEST_ASSERT_EQUAL_STRING(map[5], "Btn5"); in test_button_matrix_creation() 48 TEST_ASSERT_EQUAL_STRING(exp_map[0], ret_map[0]); in test_button_matrix_set_map_works() 49 TEST_ASSERT_EQUAL_STRING(exp_map[1], ret_map[1]); in test_button_matrix_set_map_works() 50 TEST_ASSERT_EQUAL_STRING(exp_map[2], ret_map[2]); in test_button_matrix_set_map_works() 51 TEST_ASSERT_EQUAL_STRING(exp_map[3], ret_map[3]); in test_button_matrix_set_map_works() [all …]
|
D | test_roller.c | 58 TEST_ASSERT_EQUAL_STRING(default_roller_options, lv_roller_get_options(roller)); in test_roller_get_options() 78 TEST_ASSERT_EQUAL_STRING(expected_index_str, actual_str); in test_roller_get_selected_option() 93 TEST_ASSERT_EQUAL_STRING(expected_index_str, actual_str); in test_roller_get_selected_option_truncated_buffer() 113 TEST_ASSERT_EQUAL_STRING("Ten", actual_str); in test_roller_infinite_mode_get_selected_option() 125 TEST_ASSERT_EQUAL_STRING("Two", actual_str); in test_roller_infinite_mode_get_selected_option() 362 TEST_ASSERT_EQUAL_STRING("One\nTwo\nThree", lv_roller_get_options(obj)); in test_roller_properties() 363 …TEST_ASSERT_EQUAL_STRING("One\nTwo\nThree", lv_obj_get_property(obj, LV_PROPERTY_ROLLER_OPTIONS).p… in test_roller_properties()
|
D | test_checkbox.c | 60 TEST_ASSERT_EQUAL_STRING(default_text, lv_checkbox_get_text(checkbox)); in test_checkbox_should_have_default_text_when_created() 73 TEST_ASSERT_EQUAL_STRING(message, lv_checkbox_get_text(checkbox)); in test_checkbox_should_return_dynamically_allocated_text()
|
D | test_span.c | 66 TEST_ASSERT_EQUAL_STRING(span->txt, test_text); in test_span_set_text() 77 TEST_ASSERT_EQUAL_STRING(span->txt, test_text); in test_span_set_text_with_bad_parameter_no_action_performed() 89 TEST_ASSERT_EQUAL_STRING(span->txt, new_test_text); in test_span_set_text_with_previous_test_overwrites() 99 TEST_ASSERT_EQUAL_STRING(span->txt, test_text); in test_span_set_text_static() 110 TEST_ASSERT_EQUAL_STRING(span->txt, test_text); in test_span_set_text_static_with_bad_parameter_no_action_performed() 121 TEST_ASSERT_EQUAL_STRING(span->txt, new_test_text); in test_span_set_text_static_with_previous_text_overwrites()
|
D | test_win.c | 66 TEST_ASSERT_EQUAL_STRING(dummy_text, lv_label_get_text(title)); in test_win_add_title_single() 144 TEST_ASSERT_EQUAL_STRING(dummy_text, lv_label_get_text(title)); in test_win_add_multiple_elements()
|
D | test_table.c | 36 TEST_ASSERT_EQUAL_STRING(value, lv_table_get_cell_value(table, row, column)); in test_table_should_return_assigned_cell_value() 96 TEST_ASSERT_EQUAL_STRING("", lv_table_get_cell_value(table, 0, 0)); in test_table_cell_value_should_return_empty_string_when_cell_is_empty()
|
D | test_label.c | 40 TEST_ASSERT_EQUAL_STRING(lv_label_get_text(label), LV_LABEL_DEFAULT_TEXT); in test_label_creation() 50 TEST_ASSERT_EQUAL_STRING(lv_label_get_text(label), LV_LABEL_DEFAULT_TEXT); in test_label_set_text() 54 TEST_ASSERT_EQUAL_STRING(lv_label_get_text(label), new_text); in test_label_set_text() 513 TEST_ASSERT_EQUAL_STRING(expected_text, lv_label_get_text(label)); in test_label_cut_text()
|
D | test_msgbox.c | 99 TEST_ASSERT_EQUAL_STRING(txt_title, lv_label_get_text(lbl_title)); in test_msgbox_get_title()
|
D | test_obj_property.c | 301 TEST_ASSERT_EQUAL_STRING("Hello world", lv_label_get_text(obj)); in test_label_properties() 302 TEST_ASSERT_EQUAL_STRING("Hello world", lv_obj_get_property(obj, LV_PROPERTY_LABEL_TEXT).ptr); in test_label_properties()
|
/lvgl-latest/tests/src/test_cases/ |
D | test_observer.c | 86 TEST_ASSERT_EQUAL_STRING("hello", lv_subject_get_string(&subject)); in test_observer_string() 87 TEST_ASSERT_EQUAL_STRING("hello", lv_subject_get_previous_string(&subject)); in test_observer_string() 90 TEST_ASSERT_EQUAL_STRING("my name is John", lv_subject_get_string(&subject)); in test_observer_string() 91 TEST_ASSERT_EQUAL_STRING("hello", lv_subject_get_previous_string(&subject)); in test_observer_string() 94 TEST_ASSERT_EQUAL_STRING("how are you?", lv_subject_get_string(&subject)); in test_observer_string() 95 TEST_ASSERT_EQUAL_STRING("my name is John", lv_subject_get_previous_string(&subject)); in test_observer_string() 98 TEST_ASSERT_EQUAL_STRING("I ate 10 pizzas", lv_subject_get_string(&subject)); in test_observer_string() 99 TEST_ASSERT_EQUAL_STRING("how are you?", lv_subject_get_previous_string(&subject)); in test_observer_string() 102 TEST_ASSERT_EQUAL_STRING("1: Coding is fun !", lv_subject_get_string(&subject)); in test_observer_string() 103 TEST_ASSERT_EQUAL_STRING("I ate 10 pizzas", lv_subject_get_previous_string(&subject)); in test_observer_string() [all …]
|
D | test_file_explorer.c | 39 TEST_ASSERT_EQUAL_STRING("A:src/test_files/test_file_explorer_folder/", in test_file_explorer_read_dir() 58 TEST_ASSERT_EQUAL_STRING("A:src/test_files/test_file_explorer_folder/dev/", in test_file_explorer_read_dir() 69 TEST_ASSERT_EQUAL_STRING("A:src/test_files/test_file_explorer_folder/dev/shm/", in test_file_explorer_read_dir() 74 TEST_ASSERT_EQUAL_STRING("A:src/test_files/test_file_explorer_folder/dev/", in test_file_explorer_read_dir() 79 TEST_ASSERT_EQUAL_STRING("A:src/test_files/test_file_explorer_folder/", in test_file_explorer_read_dir() 84 TEST_ASSERT_EQUAL_STRING("A:src/test_files/test_file_explorer_folder/home/", in test_file_explorer_read_dir() 95 TEST_ASSERT_EQUAL_STRING("A:src/test_files/test_file_explorer_folder/home/web_user/", in test_file_explorer_read_dir()
|
D | test_profiler.c | 67 …TEST_ASSERT_EQUAL_STRING(output_buf[0], " LVGL-1 [0] 0.000000000: tracing_mark_write: B|1|test_p… in test_profiler_normal() 68 …TEST_ASSERT_EQUAL_STRING(output_buf[1], " LVGL-1 [0] 1.000000000: tracing_mark_write: E|1|test_p… in test_profiler_normal() 69 …TEST_ASSERT_EQUAL_STRING(output_buf[2], " LVGL-1 [0] 2.000000000: tracing_mark_write: B|1|custom… in test_profiler_normal() 70 …TEST_ASSERT_EQUAL_STRING(output_buf[3], " LVGL-1 [0] 3.000000000: tracing_mark_write: E|1|custom… in test_profiler_normal()
|
D | test_txt.c | 20 TEST_ASSERT_EQUAL_STRING("Hello World", target); in test_txt_should_insert_string_into_another() 33 TEST_ASSERT_EQUAL_STRING("Hello ", target); in test_txt_should_handle_null_pointers_when_inserting() 47 TEST_ASSERT_EQUAL_STRING("World", msg); in test_txt_cut_happy_path()
|
D | test_svg.c | 69 … TEST_ASSERT_EQUAL_STRING((LV_ARRAY_GET(&svg_node1->attrs, 0, lv_svg_attr_t))->value.sval, "1.2"); in testSvgElement() 70 … TEST_ASSERT_EQUAL_STRING((LV_ARRAY_GET(&svg_node1->attrs, 1, lv_svg_attr_t))->value.sval, "tiny"); in testSvgElement() 460 TEST_ASSERT_EQUAL_STRING(str, "grad1"); in testStrokeFill() 468 TEST_ASSERT_EQUAL_STRING(str, ""); in testStrokeFill() 476 TEST_ASSERT_EQUAL_STRING(str, "grad2"); in testStrokeFill() 620 TEST_ASSERT_EQUAL_STRING(font_family, "arial"); in testTextAttrs() 623 TEST_ASSERT_EQUAL_STRING(content, "hello world!"); in testTextAttrs() 634 TEST_ASSERT_EQUAL_STRING(font_style, "italic "); in testTextAttrs() 637 TEST_ASSERT_EQUAL_STRING(content1, "hello"); in testTextAttrs() 640 TEST_ASSERT_EQUAL_STRING(content2, "world!"); in testTextAttrs() [all …]
|
D | test_svg_anim.c | 87 TEST_ASSERT_EQUAL_STRING(xlink, path_node->xml_id); in testAnimateMotion()
|
/lvgl-latest/tests/unity/ |
D | unity.h | 302 #define TEST_ASSERT_EQUAL_STRING(expected, actual) … macro
|