Lines Matching refs:span
36 lv_span_t * span = lv_spangroup_new_span(NULL); in test_spangroup_new_span_with_null_parameter_returns_null_object() local
38 TEST_ASSERT(NULL == span); in test_spangroup_new_span_with_null_parameter_returns_null_object()
44 lv_span_t * span = lv_spangroup_new_span(spangroup); in test_spangroup_new_span_with_valid_parameter_returns_not_null_object() local
46 TEST_ASSERT(NULL != span); in test_spangroup_new_span_with_valid_parameter_returns_not_null_object()
52 lv_span_t * span = lv_spangroup_new_span(spangroup); in test_spangroup_delete_span_span_is_null() local
54 lv_spangroup_delete_span(spangroup, span); in test_spangroup_delete_span_span_is_null()
62 lv_span_t * span = lv_spangroup_new_span(spangroup); in test_span_set_text() local
64 lv_span_set_text(span, test_text); in test_span_set_text()
66 TEST_ASSERT_EQUAL_STRING(span->txt, test_text); in test_span_set_text()
72 lv_span_t * span = lv_spangroup_new_span(spangroup); in test_span_set_text_with_bad_parameter_no_action_performed() local
74 lv_span_set_text(span, test_text); in test_span_set_text_with_bad_parameter_no_action_performed()
75 lv_span_set_text(span, NULL); in test_span_set_text_with_bad_parameter_no_action_performed()
77 TEST_ASSERT_EQUAL_STRING(span->txt, test_text); in test_span_set_text_with_bad_parameter_no_action_performed()
84 lv_span_t * span = lv_spangroup_new_span(spangroup); in test_span_set_text_with_previous_test_overwrites() local
86 lv_span_set_text(span, old_test_text); in test_span_set_text_with_previous_test_overwrites()
87 lv_span_set_text(span, new_test_text); in test_span_set_text_with_previous_test_overwrites()
89 TEST_ASSERT_EQUAL_STRING(span->txt, new_test_text); in test_span_set_text_with_previous_test_overwrites()
95 lv_span_t * span = lv_spangroup_new_span(spangroup); in test_span_set_text_static() local
97 lv_span_set_text_static(span, test_text); in test_span_set_text_static()
99 TEST_ASSERT_EQUAL_STRING(span->txt, test_text); in test_span_set_text_static()
105 lv_span_t * span = lv_spangroup_new_span(spangroup); in test_span_set_text_static_with_bad_parameter_no_action_performed() local
107 lv_span_set_text_static(span, test_text); in test_span_set_text_static_with_bad_parameter_no_action_performed()
108 lv_span_set_text_static(span, NULL); in test_span_set_text_static_with_bad_parameter_no_action_performed()
110 TEST_ASSERT_EQUAL_STRING(span->txt, test_text); in test_span_set_text_static_with_bad_parameter_no_action_performed()
117 lv_span_t * span = lv_spangroup_new_span(spangroup); in test_span_set_text_static_with_previous_text_overwrites() local
118 lv_span_set_text_static(span, old_test_text); in test_span_set_text_static_with_previous_text_overwrites()
119 lv_span_set_text_static(span, new_test_text); in test_span_set_text_static_with_previous_text_overwrites()
121 TEST_ASSERT_EQUAL_STRING(span->txt, new_test_text); in test_span_set_text_static_with_previous_text_overwrites()
273 lv_span_t * span = lv_spangroup_new_span(spangroup); in test_spangroup_get_expand_width() local
274 lv_span_set_text(span, "This text is over 100 pixels width"); in test_spangroup_get_expand_width()
494 lv_span_t * span = lv_spangroup_new_span(spangroup); in test_spangroup_set_right_align_on_overflow() local
495 lv_span_set_text_static(span, "China is a beautiful country."); in test_spangroup_set_right_align_on_overflow()