refactor(style): rename lv_indev_get_act to lv_indev_active

This commit is contained in:
Gabor Kiss-Vamosi
2023-10-31 19:13:45 +01:00
parent d28f80d362
commit 50d01cec3d
50 changed files with 110 additions and 105 deletions

View File

@@ -5,7 +5,7 @@
void test_obj_property_fail_on_invalid_id(void)
{
lv_obj_t * obj = lv_obj_create(lv_scr_act());
lv_obj_t * obj = lv_obj_create(lv_screen_active());
lv_property_t prop = { };
prop.id = LV_PROPERTY_ID_INVALID;
@@ -21,14 +21,14 @@ void test_obj_property_fail_on_invalid_id(void)
TEST_ASSERT_EQUAL_INT(LV_RESULT_INVALID, lv_obj_set_property(obj, &prop));
prop.id = LV_PROPERTY_OBJ_PARENT; /* Valid ID */
prop.ptr = lv_scr_act();
prop.ptr = lv_screen_active();
TEST_ASSERT_EQUAL_INT(LV_RESULT_OK, lv_obj_set_property(obj, &prop));
}
void test_obj_property_set_get_should_match(void)
{
lv_obj_t * obj = lv_obj_create(lv_scr_act());
lv_obj_t * root = lv_obj_create(lv_scr_act());
lv_obj_t * obj = lv_obj_create(lv_screen_active());
lv_obj_t * root = lv_obj_create(lv_screen_active());
lv_property_t prop = { };
lv_color_t color = {.red = 0x11, .green = 0x22, .blue = 0x33};
@@ -128,7 +128,7 @@ void test_obj_property_flag(void)
{ LV_OBJ_FLAG_USER_4, LV_PROPERTY_OBJ_FLAG_USER_4 },
};
lv_obj_t * obj = lv_obj_create(lv_scr_act());
lv_obj_t * obj = lv_obj_create(lv_screen_active());
obj->flags = 0;
for(unsigned long i = 0; i < sizeof(properties) / sizeof(properties[0]); i++) {

View File

@@ -166,7 +166,7 @@ void test_arc_click_area_with_adv_hittest(void)
/* Check value doesn't go to max when clicking on the other side of the arc */
void test_arc_click_sustained_from_start_to_end_does_not_set_value_to_max(void)
{
arc = lv_arc_create(lv_scr_act());
arc = lv_arc_create(lv_screen_active());
lv_arc_set_value(arc, 0);
lv_obj_set_size(arc, 100, 100);

View File

@@ -206,7 +206,7 @@ void test_tabview_set_act_non_existent(void)
{
tabview = lv_tabview_create(active_screen, LV_DIR_TOP, 50);
lv_tabview_set_act(tabview, 1, LV_ANIM_ON);
lv_tabview_set_active(tabview, 1, LV_ANIM_ON);
TEST_ASSERT_EQUAL_SCREENSHOT("tabview_10.png");
}
@@ -222,9 +222,9 @@ void test_tabview_tab2_selected_event(void)
LV_UNUSED(tab1);
LV_UNUSED(tab2);
lv_tabview_set_act(tabview, 1, LV_ANIM_OFF);
lv_tabview_set_active(tabview, 1, LV_ANIM_OFF);
TEST_ASSERT_EQUAL_UINT16(1, lv_tabview_get_tab_act(tabview));
TEST_ASSERT_EQUAL_UINT16(1, lv_tabview_get_tab_active(tabview));
}
void test_tabview_update_on_external_scroll(void)
@@ -257,7 +257,7 @@ void test_tabview_update_on_external_scroll(void)
TEST_ASSERT_TRUE(lv_obj_is_visible(label1));
TEST_ASSERT_FALSE(lv_obj_is_visible(label2));
TEST_ASSERT_EQUAL_UINT16(2, lv_tabview_get_tab_act(tabview));
TEST_ASSERT_EQUAL_UINT16(2, lv_tabview_get_tab_active(tabview));
}
#endif