tests/elm: explicitly denote some error/warning messages in unit tests
Summary: these blocks intentionally trigger warnings/errors, so use test macros to indicate this Depends on D8969 Reviewers: cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8970
This commit is contained in:
parent
ca5b68a620
commit
d3ef3d6af1
|
@ -41,8 +41,10 @@ EFL_START_TEST(elm_check_onoff_text)
|
|||
ck_assert_str_eq(elm_object_part_text_get(check, "off"), "OffText");
|
||||
|
||||
elm_object_style_set(check, "default");
|
||||
DISABLE_ABORT_ON_CRITICAL_START;
|
||||
ck_assert(elm_object_part_text_get(check, "on") == NULL);
|
||||
ck_assert(elm_object_part_text_get(check, "off") == NULL);
|
||||
DISABLE_ABORT_ON_CRITICAL_END;
|
||||
|
||||
}
|
||||
EFL_END_TEST
|
||||
|
|
|
@ -52,7 +52,9 @@ EFL_START_TEST(elm_photocam_file)
|
|||
ck_assert_int_eq(elm_photocam_file_set(photocam, buf), EVAS_LOAD_ERROR_NONE);
|
||||
ck_assert_str_eq(elm_photocam_file_get(photocam), buf);
|
||||
|
||||
DISABLE_ABORT_ON_CRITICAL_START;
|
||||
ck_assert_int_eq(elm_photocam_file_set(photocam, "non_existing.png"), EVAS_LOAD_ERROR_DOES_NOT_EXIST);
|
||||
DISABLE_ABORT_ON_CRITICAL_END;
|
||||
ck_assert_str_eq(elm_photocam_file_get(photocam), "non_existing.png");
|
||||
}
|
||||
EFL_END_TEST
|
||||
|
|
|
@ -36,7 +36,9 @@ EFL_START_TEST(elm_progressbar_custom_unit_check)
|
|||
win = win_add(NULL, "progressbar", ELM_WIN_BASIC);
|
||||
|
||||
progressbar = elm_progressbar_add(win);
|
||||
DISABLE_ABORT_ON_CRITICAL_START;
|
||||
elm_progressbar_unit_format_set(progressbar, format);
|
||||
DISABLE_ABORT_ON_CRITICAL_END;
|
||||
elm_progressbar_value_set(progressbar, .50);
|
||||
ck_assert(!strcmp(elm_object_part_text_get(progressbar, "elm.text.status"), "50 percent (50%)"));
|
||||
}
|
||||
|
|
|
@ -459,7 +459,9 @@ EFL_START_TEST(elm_win_test_rotation)
|
|||
ck_assert_int_eq(elm_win_rotation_get(win), 90);
|
||||
elm_win_rotation_with_resize_set(win, 180);
|
||||
ck_assert_int_eq(elm_win_rotation_get(win), 180);
|
||||
DISABLE_ABORT_ON_CRITICAL_START;
|
||||
ck_assert_int_eq(elm_win_rotation_get(NULL), -1);
|
||||
DISABLE_ABORT_ON_CRITICAL_END;
|
||||
}
|
||||
EFL_END_TEST
|
||||
|
||||
|
|
Loading…
Reference in New Issue