Home
last modified time | relevance | path

Searched refs:dd1 (Results 1 – 1 of 1) sorted by relevance

/lvgl-3.7.0/tests/src/test_cases/
Dtest_dropdown.c56 lv_obj_t * dd1 = lv_dropdown_create(lv_scr_act()); in test_dropdown_set_options() local
57 TEST_ASSERT_EQUAL_STRING("Option 1\nOption 2\nOption 3", lv_dropdown_get_options(dd1)); in test_dropdown_set_options()
58 TEST_ASSERT_EQUAL(3, lv_dropdown_get_option_cnt(dd1)); in test_dropdown_set_options()
60 lv_dropdown_set_options(dd1, "a1\nb2\nc3\nd4\ne5\nf6"); in test_dropdown_set_options()
61 TEST_ASSERT_EQUAL_STRING("a1\nb2\nc3\nd4\ne5\nf6", lv_dropdown_get_options(dd1)); in test_dropdown_set_options()
62 TEST_ASSERT_EQUAL(6, lv_dropdown_get_option_cnt(dd1)); in test_dropdown_set_options()
64 lv_obj_set_width(dd1, 200); in test_dropdown_set_options()
65 lv_dropdown_open(dd1); in test_dropdown_set_options()
66 lv_obj_update_layout(dd1); in test_dropdown_set_options()
67 TEST_ASSERT_EQUAL(200, lv_obj_get_width(lv_dropdown_get_list(dd1))); in test_dropdown_set_options()
[all …]