rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=43d450741d328e463827a45de222be38f2d5626e

commit 43d450741d328e463827a45de222be38f2d5626e
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Mon Jul 20 11:55:35 2015 +0300

    UTC: fix modal_widnow tests
---
 tests/test_modal_window/mw_add.c            | 32 ------------
 tests/test_modal_window/mw_icon_set.c       | 78 -----------------------------
 tests/test_modal_window/mw_info_text_set.c  | 71 --------------------------
 tests/test_modal_window/mw_title_set.c      | 71 --------------------------
 tests/test_modal_window/test_modal_window.c |  7 ---
 tests/test_modal_window/test_modal_window.h |  7 ---
 6 files changed, 266 deletions(-)

diff --git a/tests/test_modal_window/mw_add.c b/tests/test_modal_window/mw_add.c
index c00a9aa..64ed2e3 100644
--- a/tests/test_modal_window/mw_add.c
+++ b/tests/test_modal_window/mw_add.c
@@ -64,38 +64,6 @@ EFLETE_TEST (mw_add_test_p)
 }
 END_TEST
 
-
-/**
- * @addtogroup mw_add
- * @{
- * <tr>
- * <td>mw_add</td>
- * <td>mw_add_test_n</td>
- * <td>
- * @precondition
- * @step 1 initialized efl and app
- * @step 2 main_window NOT created
- *
- * @procedure
- * @step 1 Call mw_add(NULL, NULL, NULL)
- * @step 2 Check returned pointer
- * </td>
- * <td>NULL, NULL</td>
- * <td>NULL pointer returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (mw_add_test_n)
-{
-   elm_init(0,0);
-
-   app_init();
-   ck_assert_msg(mw_add(NULL, NULL, NULL) == NULL, "Not NULL pointer 
returned");
-
-   elm_shutdown();
-}
-END_TEST
-
 /**
  * @addtogroup mw_add
  * @{
diff --git a/tests/test_modal_window/mw_icon_set.c 
b/tests/test_modal_window/mw_icon_set.c
index 95ef8bc..1d4af08 100644
--- a/tests/test_modal_window/mw_icon_set.c
+++ b/tests/test_modal_window/mw_icon_set.c
@@ -74,84 +74,6 @@ END_TEST
 /**
  * @addtogroup mw_icon_set
  * @{
- * <tr>
- * <td>mw_icon_set</td>
- * <td>mw_icon_set_n1</td>
- * <td>
- * @precondition
- * @step 1 initialized efl and app
- * @step 2 main_window created
- * @step 3 modal window created
- *
- * @procedure
- * @step 1 Call mw_icon_set(mw, NULL)
- * @step 2 Check returned value
- * </td>
- * <td>Evas_Object *modal_window, NULL</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (mw_icon_set_test_n1)
-{
-   Evas_Object *mw;
-   App_Data *app;
-
-   elm_init(0,0);
-   app_init();
-   app = app_data_get();
-   ui_main_window_add(app);
-   mw = mw_add(NULL, NULL, NULL);
-
-   ck_assert_msg(mw_icon_set(mw, NULL) == EINA_FALSE, "Icon was set");
-
-   app_shutdown();
-   elm_shutdown();
-}
-END_TEST
-
-
-/**
- * @addtogroup mw_icon_set
- * @{
- * <tr>
- * <td>mw_icon_set</td>
- * <td>mw_icon_set_n2</td>
- * <td>
- * @precondition
- * @step 1 initialized efl and app
- * @step 2 create main window
- * @step 2 create icon
- *
- * @procedure
- * @step 1 Call mw_icon_set(NULL, icon)
- * @step 2 Check returned value
- * </td>
- * <td>NULL, Evas_Object *icon</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (mw_icon_set_test_n2)
-{
-   App_Data *app;
-
-   elm_init(0,0);
-   app_init();
-   app = app_data_get();
-   ui_main_window_add(app);
-   Evas_Object *ic = elm_icon_add(app->win);
-
-   ck_assert_msg(mw_icon_set(NULL, ic) == EINA_FALSE, "Icon was set");
-
-   app_shutdown();
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup mw_icon_set
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_modal_window/mw_info_text_set.c 
b/tests/test_modal_window/mw_info_text_set.c
index 7645b7d..9b82030 100644
--- a/tests/test_modal_window/mw_info_text_set.c
+++ b/tests/test_modal_window/mw_info_text_set.c
@@ -71,77 +71,6 @@ END_TEST
 /**
  * @addtogroup mw_info_text_set
  * @{
- * <tr>
- * <td>mw_info_text_set</td>
- * <td>mw_info_text_set_n1</td>
- * <td>
- * @precondition
- * @step 1 initialized efl and app
- *
- * @procedure
- * @step 1 Call mw_info_text_set(NULL, "new_modal_window")
- * @step 2 Check returned value
- * </td>
- * <td>NULL, const char *text = "new_modal_window"</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (mw_info_text_set_test_n1)
-{
-   elm_init(0,0);
-   app_init();
-
-   ck_assert_msg(mw_info_text_set(NULL, "new_modal_window") == EINA_FALSE, 
"Trying to set"
-                  " title to NULL object");
-
-   app_shutdown();
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup mw_info_text_set
- * @{
- * <tr>
- * <td>mw_info_text_set</td>
- * <td>mw_info_text_set_n2</td>
- * <td>
- * @precondition
- * @step 1 initialized efl and app
- * @step 2 main_window created
- * @step 3 modal window created
- *
- * @procedure
- * @step 1 Call mw_info_text_set(modal_window, NULL)
- * @step 2 Check returned value
- * </td>
- * <td>Evas_Object *modal_window, NULL</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (mw_info_text_set_test_n2)
-{
-   Evas_Object *mw;
-   App_Data *app;
-
-   elm_init(0,0);
-   app_init();
-   app = app_data_get();
-   ui_main_window_add(app);
-   mw = mw_add(NULL, NULL, NULL);
-
-   ck_assert_msg(mw_info_text_set(mw, NULL) == EINA_FALSE, "Trying to set NULL 
title");
-
-   app_shutdown();
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup mw_info_text_set
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_modal_window/mw_title_set.c 
b/tests/test_modal_window/mw_title_set.c
index 439a965..a9c95e8 100644
--- a/tests/test_modal_window/mw_title_set.c
+++ b/tests/test_modal_window/mw_title_set.c
@@ -71,77 +71,6 @@ END_TEST
 /**
  * @addtogroup mw_title_set
  * @{
- * <tr>
- * <td>mw_title_set</td>
- * <td>mw_title_set_n1</td>
- * <td>
- * @precondition
- * @step 1 initialized efl and app
- *
- * @procedure
- * @step 1 Call mw_title_set(NULL, "new_modal_window")
- * @step 2 Check returned value
- * </td>
- * <td>NULL, const char *text = "new_modal_window"</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (mw_title_set_test_n1)
-{
-   elm_init(0,0);
-   app_init();
-
-   ck_assert_msg(mw_title_set(NULL, "new_modal_window") == EINA_FALSE, "Trying 
to set"
-                  " title to NULL object");
-
-   app_shutdown();
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup mw_title_set
- * @{
- * <tr>
- * <td>mw_title_set</td>
- * <td>mw_title_set_n2</td>
- * <td>
- * @precondition
- * @step 1 initialized efl and app
- * @step 2 main_window created
- * @step 3 modal window created
- *
- * @procedure
- * @step 1 Call mw_title_set(modal_window, NULL)
- * @step 2 Check returned value
- * </td>
- * <td>Evas_Object *modal_window, NULL</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (mw_title_set_test_n2)
-{
-   Evas_Object *mw;
-   App_Data *app;
-
-   elm_init(0,0);
-   app_init();
-   app = app_data_get();
-   ui_main_window_add(app);
-   mw = mw_add(NULL, NULL, NULL);
-
-   ck_assert_msg(mw_title_set(mw, NULL) == EINA_FALSE, "Trying to set NULL 
title");
-
-   app_shutdown();
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup mw_title_set
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_modal_window/test_modal_window.c 
b/tests/test_modal_window/test_modal_window.c
index fa80d1a..0d27c7b 100644
--- a/tests/test_modal_window/test_modal_window.c
+++ b/tests/test_modal_window/test_modal_window.c
@@ -23,16 +23,9 @@ Suite* test_suite (void) {
    Suite *suite = suite_create("modal_window_test");
    TCase *tcase = tcase_create("TCase");
    tcase_add_test(tcase, mw_add_test_p);
-   tcase_add_test(tcase, mw_add_test_n);
    tcase_add_test(tcase, mw_title_set_test_p);
-   tcase_add_test(tcase, mw_title_set_test_n1);
-   tcase_add_test(tcase, mw_title_set_test_n2);
    tcase_add_test(tcase, mw_info_text_set_test_p);
-   tcase_add_test(tcase, mw_info_text_set_test_n1);
-   tcase_add_test(tcase, mw_info_text_set_test_n2);
    tcase_add_test(tcase, mw_icon_set_test_p);
-   tcase_add_test(tcase, mw_icon_set_test_n1);
-   tcase_add_test(tcase, mw_icon_set_test_n2);
    suite_add_tcase(suite, tcase);
    return suite;
 }
diff --git a/tests/test_modal_window/test_modal_window.h 
b/tests/test_modal_window/test_modal_window.h
index ed8960b..8d0eaa2 100644
--- a/tests/test_modal_window/test_modal_window.h
+++ b/tests/test_modal_window/test_modal_window.h
@@ -26,13 +26,6 @@
  */
 
 void  mw_add_test_p(int);
-void  mw_add_test_n(int);
-void  mw_title_set_test_n1(int);
 void  mw_title_set_test_p(int);
-void  mw_title_set_test_n2(int);
 void  mw_info_text_set_test_p(int);
-void  mw_info_text_set_test_n1(int);
-void  mw_info_text_set_test_n2(int);
 void  mw_icon_set_test_p(int);
-void  mw_icon_set_test_n1(int);
-void  mw_icon_set_test_n2(int);

-- 


Reply via email to