rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=663b8ee7f918e28347078bf8485f4926e4591780

commit 663b8ee7f918e28347078bf8485f4926e4591780
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Mon Jul 20 18:14:05 2015 +0300

    UTC: fix ui_widget_list tests
---
 tests/test_ui_widget_list/test_ui_widget_list.c    | 28 ++++----
 tests/test_ui_widget_list/test_ui_widget_list.h    |  5 --
 tests/test_ui_widget_list/ui_widget_list_add.c     | 29 ---------
 .../test_ui_widget_list/ui_widget_list_data_set.c  | 76 ----------------------
 .../ui_widget_list_tab_activate.c                  | 30 ---------
 .../test_ui_widget_list/ui_widget_list_title_set.c | 72 --------------------
 6 files changed, 11 insertions(+), 229 deletions(-)

diff --git a/tests/test_ui_widget_list/test_ui_widget_list.c 
b/tests/test_ui_widget_list/test_ui_widget_list.c
index 9f6d06b..f2bd28f 100644
--- a/tests/test_ui_widget_list/test_ui_widget_list.c
+++ b/tests/test_ui_widget_list/test_ui_widget_list.c
@@ -24,70 +24,64 @@ Suite* test_suite (void) {
    TCase *tcase = tcase_create("TCase");
 
    tcase_add_test(tcase, ui_widget_list_add_test_p);
-   tcase_add_test(tcase, ui_widget_list_add_test_n);
 
    tcase_add_test(tcase, ui_widget_list_data_set_test_p1);
    tcase_add_test(tcase, ui_widget_list_data_set_test_p2);
    tcase_add_test(tcase, ui_widget_list_data_set_test_p3);
    tcase_add_test(tcase, ui_widget_list_data_set_test_p4);
-   tcase_add_test(tcase, ui_widget_list_data_set_test_n1);
-   tcase_add_test(tcase, ui_widget_list_data_set_test_n2);
 
 /*   tcase_add_test(tcase, ui_widget_list_class_data_reload_test_p1); TODO: 
separate functional tests*/
 /*   tcase_add_test(tcase, ui_widget_list_class_data_reload_test_p2); TODO: 
separate functional tests*/
 
 /*   tcase_add_test(tcase, ui_widget_list_class_data_reload_test_n1); TODO: 
separate functional tests*/
-   tcase_add_test(tcase, ui_widget_list_class_data_reload_test_n2);
-   tcase_add_test(tcase, ui_widget_list_class_data_reload_test_n3);
+/*   tcase_add_test(tcase, ui_widget_list_class_data_reload_test_n2);
+   tcase_add_test(tcase, ui_widget_list_class_data_reload_test_n3);*/
 
 /*   tcase_add_test(tcase, ui_widget_list_layouts_reload_test_p); TODO: 
separate functional tests*/
-   tcase_add_test(tcase, ui_widget_list_layouts_reload_test_n1);
+/*   tcase_add_test(tcase, ui_widget_list_layouts_reload_test_n1); */
 /*   tcase_add_test(tcase, ui_widget_list_layouts_reload_test_n2); TODO: 
separate functional tests*/
-   tcase_add_test(tcase, ui_widget_list_layouts_reload_test_n3);
+/*   tcase_add_test(tcase, ui_widget_list_layouts_reload_test_n3);*/
 
 /*   tcase_add_test(tcase, ui_widget_list_part_add_test_p); TODO: separate 
functional tests*/
 /*   tcase_add_test(tcase, ui_widget_list_part_add_test_n1); TODO: separate 
functional tests*/
 /*   tcase_add_test(tcase, ui_widget_list_part_add_test_n2); TODO: separate 
functional tests*/
 /*   tcase_add_test(tcase, ui_widget_list_part_add_test_n3); TODO: separate 
functional tests*/
-   tcase_add_test(tcase, ui_widget_list_part_add_test_n4);
+/*   tcase_add_test(tcase, ui_widget_list_part_add_test_n4);*/
 
 /*   tcase_add_test(tcase, ui_widget_list_selected_part_above_test_p);
    tcase_add_test(tcase, ui_widget_list_selected_part_above_test_n1);
    tcase_add_test(tcase, ui_widget_list_selected_part_above_test_n2);
    tcase_add_test(tcase, ui_widget_list_selected_part_above_test_n3); TODO: 
separate functional tests*/
-   tcase_add_test(tcase, ui_widget_list_selected_part_above_test_n4);
+/*   tcase_add_test(tcase, ui_widget_list_selected_part_above_test_n4);*/
 
 /*   tcase_add_test(tcase, ui_widget_list_selected_part_below_test_p);
    tcase_add_test(tcase, ui_widget_list_selected_part_below_test_n1);
    tcase_add_test(tcase, ui_widget_list_selected_part_below_test_n2);
    tcase_add_test(tcase, ui_widget_list_selected_part_below_test_n3); TODO: 
separate functional tests*/
-   tcase_add_test(tcase, ui_widget_list_selected_part_below_test_n4);
+/*   tcase_add_test(tcase, ui_widget_list_selected_part_below_test_n4);*/
 
 /*   tcase_add_test(tcase, ui_widget_list_selected_part_del_test_p);
    tcase_add_test(tcase, ui_widget_list_selected_part_del_test_n1);
    tcase_add_test(tcase, ui_widget_list_selected_part_del_test_n2); TODO: 
separate functional tests*/
-   tcase_add_test(tcase, ui_widget_list_selected_part_del_test_n3);
+/*   tcase_add_test(tcase, ui_widget_list_selected_part_del_test_n3);*/
 
 /*   tcase_add_test(tcase, ui_widget_list_selected_part_get_test_p);
    tcase_add_test(tcase, ui_widget_list_selected_part_get_test_n1); TODO: 
separate functional tests*/
-   tcase_add_test(tcase, ui_widget_list_selected_part_get_test_n2);
+/*   tcase_add_test(tcase, ui_widget_list_selected_part_get_test_n2);*/
 
 /*   tcase_add_test(tcase, ui_widget_list_part_selected_set_test_p);
    tcase_add_test(tcase, ui_widget_list_part_selected_set_test_n1);
    tcase_add_test(tcase, ui_widget_list_part_selected_set_test_n2); TODO: 
separate functional tests*/
-   tcase_add_test(tcase, ui_widget_list_part_selected_set_test_n3);
+/*   tcase_add_test(tcase, ui_widget_list_part_selected_set_test_n3);*/
 
    tcase_add_test(tcase, ui_widget_list_title_set_test_p);
-   tcase_add_test(tcase, ui_widget_list_title_set_test_n1);
-   tcase_add_test(tcase, ui_widget_list_title_set_test_n2);
 
 /*   tcase_add_test(tcase, ui_widget_list_selected_parts_get_test_p);
    tcase_add_test(tcase, ui_widget_list_selected_parts_get_test_n1); TODO: 
separate functional tests*/
-   tcase_add_test(tcase, ui_widget_list_selected_parts_get_test_n2);
+/*   tcase_add_test(tcase, ui_widget_list_selected_parts_get_test_n2);*/
 
    tcase_add_test(tcase, ui_widget_list_tab_activate_test_p);
    tcase_add_test(tcase, ui_widget_list_tab_activate_test_n1);
-   tcase_add_test(tcase, ui_widget_list_tab_activate_test_n2);
 
    suite_add_tcase(suite, tcase);
    return suite;
diff --git a/tests/test_ui_widget_list/test_ui_widget_list.h 
b/tests/test_ui_widget_list/test_ui_widget_list.h
index db68397..783baa9 100644
--- a/tests/test_ui_widget_list/test_ui_widget_list.h
+++ b/tests/test_ui_widget_list/test_ui_widget_list.h
@@ -27,13 +27,11 @@
 #define TEST_NAME "widget_list"
 
 void ui_widget_list_add_test_p(int);
-void ui_widget_list_add_test_n(int);
 
 void ui_widget_list_data_set_test_p1(int);
 void ui_widget_list_data_set_test_p2(int);
 void ui_widget_list_data_set_test_p3(int);
 void ui_widget_list_data_set_test_p4(int);
-void ui_widget_list_data_set_test_n1(int);
 void ui_widget_list_data_set_test_n2(int);
 
 void ui_widget_list_class_data_reload_test_p1(int);
@@ -80,8 +78,6 @@ void ui_widget_list_part_selected_set_test_n2(int);
 void ui_widget_list_part_selected_set_test_n3(int);
 
 void ui_widget_list_title_set_test_p(int);
-void ui_widget_list_title_set_test_n1(int);
-void ui_widget_list_title_set_test_n2(int);
 
 void ui_widget_list_selected_parts_get_test_p(int);
 void ui_widget_list_selected_parts_get_test_n1(int);
@@ -89,4 +85,3 @@ void ui_widget_list_selected_parts_get_test_n2(int);
 
 void ui_widget_list_tab_activate_test_p(int);
 void ui_widget_list_tab_activate_test_n1(int);
-void ui_widget_list_tab_activate_test_n2(int);
diff --git a/tests/test_ui_widget_list/ui_widget_list_add.c 
b/tests/test_ui_widget_list/ui_widget_list_add.c
index 28991d7..cda7e45 100644
--- a/tests/test_ui_widget_list/ui_widget_list_add.c
+++ b/tests/test_ui_widget_list/ui_widget_list_add.c
@@ -65,35 +65,6 @@ END_TEST
 /**
  * @addtogroup ui_widget_list_add
  * @{
- * <tr>
- * <td>ui_widget_list_add</td>
- * <td>ui_widget_list_add_test_n</td>
- * <td>
- * @precondition
- * @step 1 initialize elementary library
- *
- * @procedure
- * @step 1 Call ui_widget_list_add
- * @step 2 Check returned pointer
- * </td>
- * <td>NULL</td>
- * <td>NULL pointer returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (ui_widget_list_add_test_n)
-{
-   elm_init(0, 0);
-   Evas_Object *widget_list;
-   widget_list = ui_widget_list_add(NULL);
-   ck_assert_msg(widget_list == NULL, "Create widget list object without 
parent.");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup ui_widget_list_add
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_ui_widget_list/ui_widget_list_data_set.c 
b/tests/test_ui_widget_list/ui_widget_list_data_set.c
index d96e588..1c5b176 100644
--- a/tests/test_ui_widget_list/ui_widget_list_data_set.c
+++ b/tests/test_ui_widget_list/ui_widget_list_data_set.c
@@ -248,82 +248,6 @@ END_TEST
 /**
  * @addtogroup ui_widget_list_data_set
  * @{
- * <tr>
- * <td>ui_widget_list_data_set</td>
- * <td>ui_widget_list_data_set_test_n1</td>
- * <td>
- * @precondition
- * @step 1 initialize elementary library
- * @step 2 create parent window
- * @step 3 create widget list.
- *
- * @procedure
- * @step 1 Call ui_widget_list_data_set
- * @step 2 Check returned value
- * </td>
- * <td>(Evas_Object *) widget_list, NULL</td>
- * <td>EINA_FALSE</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (ui_widget_list_data_set_test_n1)
-{
-   elm_init(0, 0);
-   Evas_Object *parent, *widget_list;
-   Eina_Bool result = EINA_FALSE;
-
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   widget_list = ui_widget_list_add(parent);
-
-   result = ui_widget_list_data_set(widget_list, NULL);
-   ck_assert_msg(!result, "Data loaded into widget list, with NULL project");
-   evas_object_del(parent);
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup ui_widget_list_data_set
- * @{
- * <tr>
- * <td>ui_widget_list_data_set</td>
- * <td>ui_widget_list_data_set_test_n2</td>
- * <td>
- * @precondition
- * @step 1 initialize elementary library
- * @step 2 open project into Project structure. Use edj file,
- *         wich contain widgets and layout groups.
- *
- * @procedure
- * @step 1 Call ui_widget_list_data_set
- * @step 2 Check returned value
- * </td>
- * <td>NULL, (Project *) project</td>
- * <td>EINA_FALSE</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (ui_widget_list_data_set_test_n2)
-{
-   elm_init(0, 0);
-   setup("ui_widget_list_data_set_test_n2");
-
-   Project *project = NULL;
-   Eina_Bool result = EINA_FALSE;
-
-   project = 
pm_project_open("./ui_widget_list_data_set_test_n2/ui_widget_list_data_set_test_n2.pro");
-   result = ui_widget_list_data_set(NULL, project);
-
-   ck_assert_msg(!result, "Data loaded with NULL widget list object");
-
-   teardown("./ui_widget_list_data_set_test_n2");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup ui_widget_list_data_set
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_ui_widget_list/ui_widget_list_tab_activate.c 
b/tests/test_ui_widget_list/ui_widget_list_tab_activate.c
index 5a6f73e..e75d5d6 100644
--- a/tests/test_ui_widget_list/ui_widget_list_tab_activate.c
+++ b/tests/test_ui_widget_list/ui_widget_list_tab_activate.c
@@ -109,36 +109,6 @@ END_TEST
 /**
  * @addtogroup ui_widget_list_tab_activate
  * @{
- * <tr>
- * <td>ui_widget_list_tab_activate</td>
- * <td>ui_widget_list_tab_activate_test_n2</td>
- * <td>
- * @precondition
- * @step 1 initialize elementary library
- *
- * @procedure
- * @step 1 Call ui_widget_list_tab_activate(NULL, 0);
- * @step 2 Check returned pointer
- * </td>
- * <td>(Evas_Object *) parent</td>
- * <td>EINA_FALSE</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (ui_widget_list_tab_activate_test_n2)
-{
-   elm_init(0, 0);
-   Eina_Bool res = EINA_FALSE;
-
-   res = ui_widget_list_tab_activate(NULL, 0);
-   ck_assert_msg(res == EINA_FALSE, "The activated tab does not exist");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup ui_widget_list_tab_activate
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_ui_widget_list/ui_widget_list_title_set.c 
b/tests/test_ui_widget_list/ui_widget_list_title_set.c
index fcf8870..0325843 100644
--- a/tests/test_ui_widget_list/ui_widget_list_title_set.c
+++ b/tests/test_ui_widget_list/ui_widget_list_title_set.c
@@ -74,78 +74,6 @@ END_TEST
 /**
  * @addtogroup ui_widget_list_title_set
  * @{
- * <tr>
- * <td>ui_widget_list_title_set</td>
- * <td>ui_widget_list_title_set_test_n1</td>
- * <td>
- * @precondition
- * @step 1 initialize elementary library
- * @step 2 add theme extension "eflete theme".
- * @step 3 create parent window
- * @step 4 create widget list.
- *
- * @procedure
- * @step 1 Call ui_widget_list_title_set
- * @step 2 Check returned value
- * </td>
- * <td>(Evas_Object *) widget_list, NULL</td>
- * <td>EINA_FALSE</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (ui_widget_list_title_set_test_n1)
-{
-   elm_init(0, 0);
-   elm_theme_extension_add(NULL, EFLETE_THEME);
-   Evas_Object *parent, *widget_list;
-   Eina_Bool result = EINA_FALSE;
-
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   widget_list = ui_widget_list_add(parent);
-
-   result = ui_widget_list_title_set(widget_list, NULL);
-   ck_assert_msg(!result, "NULL was set as title into widget list");
-
-   evas_object_del(parent);
-   elm_theme_extension_del(NULL, EFLETE_THEME);
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup ui_widget_list_title_set
- * @{
- * <tr>
- * <td>ui_widget_list_title_set</td>
- * <td>ui_widget_list_title_set_test_n2</td>
- * <td>
- * @precondition
- * @step 1 initialize elementary library
- *
- * @procedure
- * @step 1 Call ui_widget_list_title_set
- * @step 2 Check returned value
- * </td>
- * <td>NULL, NULL</td>
- * <td>EINA_FALSE</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (ui_widget_list_title_set_test_n2)
-{
-   elm_init(0, 0);
-   Eina_Bool result = EINA_FALSE;
-
-   result = ui_widget_list_title_set(NULL, NULL);
-   ck_assert_msg(!result, "NULL was set as title into widget list");
-
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup ui_widget_list_title_set
- * @{
  * </TABLE>
  * @}
  * @}

-- 


Reply via email to