rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=34f78fcb72776787fe1d9f5dfa7fcea4ccfb9c44
commit 34f78fcb72776787fe1d9f5dfa7fcea4ccfb9c44 Author: Andrii Kroitor <an.kroi...@samsung.com> Date: Tue Jul 21 10:08:23 2015 +0300 UTC: fix notify tests --- tests/test_notify/noti_error_show_test.c | 40 --------------- tests/test_notify/noti_info_show_test.c | 78 ------------------------------ tests/test_notify/noti_warning_show_test.c | 40 --------------- tests/test_notify/test_notify.c | 4 -- tests/test_notify/test_notify.h | 4 -- 5 files changed, 166 deletions(-) diff --git a/tests/test_notify/noti_error_show_test.c b/tests/test_notify/noti_error_show_test.c index 584fc13..b4450a9 100644 --- a/tests/test_notify/noti_error_show_test.c +++ b/tests/test_notify/noti_error_show_test.c @@ -59,46 +59,6 @@ EFLETE_TEST(noti_error_show_test_p) ui_main_window_add(app); ck_assert_msg(noti_error_show(win_layout_get(), "text"), "can't show notify with text"); - ck_assert_msg(noti_error_show(win_layout_get(), NULL), - "can't show notify with NULL text"); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup noti_error_show - * @{ - * <tr> - * <td>noti_error_show</td> - * <td>noti_error_show_test_n</td> - * <td> - * @precondition - * @step 1 initialized efl and app - * @step 2 main window created - * - * @procedure - * @step 1 Call noti_error_show(NULL, "text") - * @step 2 Check returned value - * @step 3 Call noti_error_show(NULL, NULL) - * @step 4 Check returned value - * </td> - * <td>NULL, "text"/NULL</td> - * <td>EINA_FALSE returned</td> - * </tr> - * @} - */ -EFLETE_TEST(noti_error_show_test_n) -{ - elm_init(0,0); - App_Data *app; - app_init(); - app = app_data_get(); - ui_main_window_add(app); - ck_assert_msg(noti_error_show(NULL, "text") == false, - "can't show notify with text"); - ck_assert_msg(noti_error_show(NULL, NULL) == false, - "can't show notify with NULL text"); app_shutdown(); elm_shutdown(); } diff --git a/tests/test_notify/noti_info_show_test.c b/tests/test_notify/noti_info_show_test.c index 7ba74dd..725daad 100644 --- a/tests/test_notify/noti_info_show_test.c +++ b/tests/test_notify/noti_info_show_test.c @@ -60,84 +60,6 @@ EFLETE_TEST(noti_info_show_test_p) ui_main_window_add(app); ck_assert_msg(noti_info_show(win_layout_get(), "text", 1), "can't show notify with text"); - ck_assert_msg(noti_info_show(win_layout_get(), NULL, 1), - "can't show notify with NULL text"); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup noti_info_show - * @{ - * <tr> - * <td>noti_info_show</td> - * <td>noti_info_show_test_n</td> - * <td> - * @precondition - * @step 1 initialized efl and app - * @step 2 main window created - * - * @procedure - * @step 1 Call noti_info_show(NULL, "text", 1) - * @step 2 Check returned value - * @step 3 Call noti_info_show(NULL, NULL, 1) - * @step 4 Check returned value - * </td> - * <td>NULL, "text"/NULL, 1</td> - * <td>EINA_FALSE returned</td> - * </tr> - * @} - */ -EFLETE_TEST(noti_info_show_test_n1) -{ - elm_init(0,0); - App_Data *app; - app_init(); - app = app_data_get(); - ui_main_window_add(app); - ck_assert_msg(noti_info_show(NULL, "text", 1) == false, - "can't show notify with text"); - ck_assert_msg(noti_info_show(NULL, NULL, 1) == false, - "can't show notify with NULL text"); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup noti_info_show - * @{ - * <tr> - * <td>noti_info_show</td> - * <td>noti_info_show_test_n2</td> - * <td> - * @precondition - * @step 1. initialized efl and app - * @step 2. main window created - * - * @procedure - * @step 1 Call noti_info_show(win_layout_get(), "text", -1) - * @step 2 Check returned value - * @step 3 Call noti_info_show(win_layout_get(), NULL, -1) - * @step 4 Check returned value - * </td> - * <td>Evas_Object *win_layout, "text"/NULL, -1</td> - * <td>EINA_FALSE returned</td> - * </tr> - * @} - */ -EFLETE_TEST(noti_info_show_test_n2) -{ - elm_init(0,0); - App_Data *app; - app_init(); - app = app_data_get(); - ui_main_window_add(app); - ck_assert_msg(noti_info_show(win_layout_get(), "text", -1) == false, - "can't show notify with text"); - ck_assert_msg(noti_info_show(win_layout_get(), NULL, -1) == false, - "can't show notify with NULL text"); app_shutdown(); elm_shutdown(); } diff --git a/tests/test_notify/noti_warning_show_test.c b/tests/test_notify/noti_warning_show_test.c index e59dfa6..fb4d29f 100644 --- a/tests/test_notify/noti_warning_show_test.c +++ b/tests/test_notify/noti_warning_show_test.c @@ -60,46 +60,6 @@ EFLETE_TEST(noti_warning_show_test_p) ui_main_window_add(app); ck_assert_msg(noti_warning_show(win_layout_get(), "text"), "can't show notify with text"); - ck_assert_msg(noti_warning_show(win_layout_get(), NULL), - "can't show notify with NULL text"); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup noti_warning_show - * @{ - * <tr> - * <td>noti_warning_show</td> - * <td>noti_warning_show_test_n</td> - * <td> - * @precondition - * @step 1 initialized efl and app - * @step 2 main window created - * - * @procedure - * @step 1 Call noti_warning_show(NULL, "text") - * @step 2 Check returned value - * @step 3 Call noti_warning_show(NULL, NULL) - * @step 4 Check returned value - * </td> - * <td>NULL, "text"/NULL</td> - * <td>EINA_FALSE returned</td> - * </tr> - * @} - */ -EFLETE_TEST(noti_warning_show_test_n) -{ - elm_init(0,0); - App_Data *app; - app_init(); - app = app_data_get(); - ui_main_window_add(app); - ck_assert_msg(noti_warning_show(NULL, "text") == false, - "can't show notify with text"); - ck_assert_msg(noti_warning_show(NULL, NULL) == false, - "can't show notify with NULL text"); app_shutdown(); elm_shutdown(); } diff --git a/tests/test_notify/test_notify.c b/tests/test_notify/test_notify.c index 824a79d..b5c6ecf 100644 --- a/tests/test_notify/test_notify.c +++ b/tests/test_notify/test_notify.c @@ -23,12 +23,8 @@ Suite* test_suite (void) { Suite *suite = suite_create("notify_test"); TCase *tcase = tcase_create("TCase"); tcase_add_test(tcase, noti_error_show_test_p); - tcase_add_test(tcase, noti_error_show_test_n); tcase_add_test(tcase, noti_warning_show_test_p); - tcase_add_test(tcase, noti_warning_show_test_n); tcase_add_test(tcase, noti_info_show_test_p); - tcase_add_test(tcase, noti_info_show_test_n1); - tcase_add_test(tcase, noti_info_show_test_n2); suite_add_tcase(suite, tcase); return suite; } diff --git a/tests/test_notify/test_notify.h b/tests/test_notify/test_notify.h index 10b189c..05f4441 100644 --- a/tests/test_notify/test_notify.h +++ b/tests/test_notify/test_notify.h @@ -26,11 +26,7 @@ */ void noti_error_show_test_p(int); -void noti_error_show_test_n(int); void noti_warning_show_test_p(int); -void noti_warning_show_test_n(int); void noti_info_show_test_p(int); -void noti_info_show_test_n1(int); -void noti_info_show_test_n2(int); --