rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=403348f1c8c8987e1a1dd46759813ab3be918eb5

commit 403348f1c8c8987e1a1dd46759813ab3be918eb5
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Mon Jul 20 12:10:05 2015 +0300

    UTC: fix live_view tests
---
 tests/test_live_view/live_view_add.c               |  32 -----
 tests/test_live_view/live_view_free.c              |  29 ----
 tests/test_live_view/live_view_theme_update.c      | 153 --------------------
 tests/test_live_view/live_view_widget_style_set.c  | 155 ---------------------
 .../test_live_view/live_view_widget_style_unset.c  |  28 ----
 tests/test_live_view/test_live_view.c              |  20 +--
 tests/test_live_view/test_live_view.h              |  21 +--
 7 files changed, 8 insertions(+), 430 deletions(-)

diff --git a/tests/test_live_view/live_view_add.c 
b/tests/test_live_view/live_view_add.c
index ce8cd9d..98eb973 100644
--- a/tests/test_live_view/live_view_add.c
+++ b/tests/test_live_view/live_view_add.c
@@ -69,38 +69,6 @@ END_TEST
 /**
  * @addtogroup live_view_add
  * @{
- * <tr>
- * <td>live_view_add</td>
- * <td>live_view_add_test_n</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- *
- * @procedure
- * @step 1 Call live_view_add.
- * @step 2 Check returned pointer.
- * </td>
- * <td>NULL</td>
- * <td>NULL pointer returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_add_test_n)
-{
-   Live_View *live = NULL;
-
-   elm_init(0, 0);
-
-   live = live_view_add(NULL, false);
-   ck_assert_msg(live == NULL, "Live view object was created "
-                               "with NULL pointer parent");
-
-   elm_shutdown();
-}
-END_TEST
-/**
- * @addtogroup live_view_add
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_live_view/live_view_free.c 
b/tests/test_live_view/live_view_free.c
index a794394..e5e42fe 100644
--- a/tests/test_live_view/live_view_free.c
+++ b/tests/test_live_view/live_view_free.c
@@ -68,35 +68,6 @@ EFLETE_TEST(live_view_free_test_p)
 }
 END_TEST
 
-
-/**
- * @addtogroup live_view_free
- * @{
- * <tr>
- * <td>live_view_add</td>
- * <td>live_view_free_test_n</td>
- * <td>
- * @precondition
- * @step 1 None
- *
- * @procedure
- * @step 1 Call live_view_free.
- * @step 2 Check returned value.
- * </td>
- * <td>NULL</td>
- * <td>function returned EINA_FALSE</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_free_test_n)
-{
-   Eina_Bool ret = EINA_TRUE;
-
-   ret = live_view_free(NULL);
-   ck_assert_msg(ret == EINA_FALSE, "Freeing NULL pointer");
-}
-END_TEST
-
 /**
  * @addtogroup live_view_free
  * @{
diff --git a/tests/test_live_view/live_view_theme_update.c 
b/tests/test_live_view/live_view_theme_update.c
index 567f686..c877bd1 100644
--- a/tests/test_live_view/live_view_theme_update.c
+++ b/tests/test_live_view/live_view_theme_update.c
@@ -153,159 +153,6 @@ END_TEST
 /**
  * @addtogroup live_view_theme_update
  * @{
- * <tr>
- * <td>live_view_theme_update</td>
- * <td>live_view_theme_update_test_n1</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Create parent window.
- * @step 3 Open project into Project structure. Use edj file,
- *         wich contain widgets and layout groups.
- * @step 4 Create style object as style.
- * @step 5 Load style data from edje file.
- * @step 6 Set loaded style as current loaded into project.
- *
- *
- * @procedure
- * @step 1 Call live_view_theme_update.
- * @step 2 Check returned value.
- * </td>
- * <td>NULL, (Project *)project</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_theme_update_test_n1)
-{
-   Evas *e = NULL;
-   Evas_Object *parent = NULL;
-   Project *project = NULL;
-   Style *style = NULL;
-   Eina_Bool res = EINA_TRUE;
-
-   elm_init(0, 0);
-   setup("live_view_theme_update_test_n1");
-
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   project = 
pm_project_open("./live_view_theme_update_test_n1/live_view_theme_update_test_n1.pro");
-   e = evas_object_evas_get(parent);
-   style = wm_style_add("def", "elm/radio/base/def", STYLE, NULL);
-   wm_style_data_load(style, e, project->mmap_file);
-   project->current_style = style;
-
-   res = live_view_theme_update(NULL, project);
-   ck_assert_msg(res == EINA_FALSE, "Update style in NULL pointer live view.");
-
-   wm_style_free(style);
-   evas_object_del(parent);
-   teardown("./live_view_theme_update_test_n1");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_theme_update
- * @{
- * <tr>
- * <td>live_view_theme_update</td>
- * <td>live_view_theme_update_test_n2</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Create parent window.
- * @step 3 Create live view object.
- *
- *
- * @procedure
- * @step 1 Call live_view_theme_update.
- * @step 2 Check returned value.
- * </td>
- * <td>(Live_View *)live, NULL</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_theme_update_test_n2)
-{
-   Evas_Object *parent = NULL;
-   Live_View *live = NULL;
-   Eina_Bool res = EINA_TRUE;
-
-   elm_init(0, 0);
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   live = live_view_add(parent, false);
-
-   res = live_view_theme_update(live, NULL);
-   ck_assert_msg(res == EINA_FALSE, "Update style, withoud load project.");
-
-   live_view_free(live);
-   evas_object_del(parent);
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_theme_update
- * @{
- * <tr>
- * <td>live_view_theme_update</td>
- * <td>live_view_theme_update_test_n3</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Create parent window.
- * @step 3 Open project into Project structure. Use edj file,
- *         wich contain widgets and layout groups.
- * @step 4 Create style object as layout.
- * @step 5 Load style data from edje file.
- * @step 6 Create live view object.
- *
- *
- * @procedure
- * @step 1 Call live_view_theme_update.
- * @step 2 Check returned value.
- * </td>
- * <td>(Live_View *)live, (Project *)project</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_theme_update_test_n3)
-{
-   Evas *e = NULL;
-   Evas_Object *parent = NULL;
-   Live_View *live = NULL;
-   Project *project = NULL;
-   Style *layout = NULL;
-   Eina_Bool res = EINA_TRUE;
-
-   elm_init(0, 0);
-   setup("live_view_theme_update_test_n3");
-
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   project = 
pm_project_open("./live_view_theme_update_test_n3/live_view_theme_update_test_n3.pro");
-   e = evas_object_evas_get(parent);
-   layout = wm_style_add("load/layout/test", "load/layout/test", LAYOUT, NULL);
-   wm_style_data_load(layout, e, project->mmap_file);
-   live = live_view_add(parent, false);
-
-   res = live_view_theme_update(live, project);
-   ck_assert_msg(res == EINA_FALSE, "Update style for layout in live view, "
-                 "without load style as current in project");
-
-   live_view_free(live);
-   wm_style_free(layout);
-   evas_object_del(parent);
-   teardown("./live_view_theme_update_test_n3");
-   elm_shutdown();
-}
-END_TEST
-
-
-/**
- * @addtogroup live_view_theme_update
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_live_view/live_view_widget_style_set.c 
b/tests/test_live_view/live_view_widget_style_set.c
index bdf6d5d..71d556f 100644
--- a/tests/test_live_view/live_view_widget_style_set.c
+++ b/tests/test_live_view/live_view_widget_style_set.c
@@ -168,161 +168,6 @@ END_TEST
 /**
  * @addtogroup live_view_widget_style_set
  * @{
- * <tr>
- * <td>live_view_widget_style_set</td>
- * <td>live_view_widget_style_set_test_n1</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Create parent window.
- * @step 3 Open project into Project structure. Use edj file,
- *         wich contain widgets and layout groups.
- * @step 4 Create style object as style.
- * @step 5 Load style data from edje file.
- * @step 6 Set loaded style as current loaded into project.
- *
- *
- * @procedure
- * @step 1 Call live_view_widget_style_set.
- * @step 2 Check returned value.
- * </td>
- * <td>NULL, (Project *)project, (Style *)style</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_widget_style_set_test_n1)
-{
-   Evas *e = NULL;
-   Evas_Object *parent = NULL;
-   Project *project = NULL;
-   Style *style = NULL;
-   Eina_Bool res = EINA_TRUE;
-
-   elm_init(0, 0);
-   setup("live_view_widget_style_set_test_n1");
-
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   project = 
pm_project_open("./live_view_widget_style_set_test_n1/live_view_widget_style_set_test_n1.pro");
-   e = evas_object_evas_get(parent);
-   style = wm_style_add("def", "elm/radio/base/def", STYLE, NULL);
-   wm_style_data_load(style, e, project->mmap_file);
-   project->current_style = style;
-
-   res = live_view_widget_style_set(NULL, project, style);
-   ck_assert_msg(res == EINA_FALSE, "Set style into NULL pointer of live 
view.");
-
-   wm_style_free(style);
-   evas_object_del(parent);
-   teardown("./live_view_widget_style_set_test_n1");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_widget_style_set
- * @{
- * <tr>
- * <td>live_view_widget_style_set</td>
- * <td>live_view_widget_style_set_test_n2</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Create parent window.
- * @step 3 Open project into Project structure. Use edj file,
- *         wich contain widgets and layout groups.
- * @step 4 Create live view object.
- *
- *
- * @procedure
- * @step 1 Call live_view_widget_style_set.
- * @step 2 Check returned value.
- * </td>
- * <td>(Live_View *)live, (Project *)project, NULL</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_widget_style_set_test_n2)
-{
-   Evas_Object *parent = NULL;
-   Live_View *live = NULL;
-   Project *project = NULL;
-   Eina_Bool res = EINA_TRUE;
-
-   elm_init(0, 0);
-   setup("live_view_widget_style_set_test_n2");
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   project = 
pm_project_open("./live_view_widget_style_set_test_n2/live_view_widget_style_set_test_n2.pro");
-   live = live_view_add(parent, false);
-
-   res = live_view_widget_style_set(live, project, NULL);
-   ck_assert_msg(res == EINA_FALSE, "Set NULL pointer style into live view.");
-
-   live_view_free(live);
-   evas_object_del(parent);
-   teardown("live_view_widget_style_set_test_n2");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_widget_style_set
- * @{
- * <tr>
- * <td>live_view_widget_style_set</td>
- * <td>live_view_widget_style_set_test_n3</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Create parent window.
- * @step 3 Create style object as style.
- * @step 4 Mmap edj file.
- * @step 5 Load style data from edje file.
- * @step 6 Set loaded style as current loaded into project.
- * @step 7 Create live view object.
- *
- *
- * @procedure
- * @step 1 Call live_view_widget_style_set.
- * @step 2 Check returned value.
- * </td>
- * <td>(Live_View *)live, NULL, (Style *)style</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_widget_style_set_test_n3)
-{
-   Evas *e = NULL;
-   Evas_Object *parent = NULL;
-   Live_View *live = NULL;
-   Style *style = NULL;
-   Eina_Bool res = EINA_TRUE;
-   Eina_File *mmap_file = NULL;
-
-   elm_init(0, 0);
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   mmap_file = eina_file_open("./edj_build/"TEST_NAME".edj", EINA_FALSE);
-   e = evas_object_evas_get(parent);
-   style = wm_style_add("def", "elm/radio/base/def", STYLE, NULL);
-   wm_style_data_load(style, e, mmap_file);
-   live = live_view_add(parent, false);
-
-   res = live_view_widget_style_set(live, NULL, style);
-   ck_assert_msg(res == EINA_FALSE, "Set style into live view, without open 
project");
-
-   live_view_free(live);
-   wm_style_free(style);
-   eina_file_close(mmap_file);
-   evas_object_del(parent);
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_widget_style_set
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_live_view/live_view_widget_style_unset.c 
b/tests/test_live_view/live_view_widget_style_unset.c
index ff6fbe9..9794c0f 100644
--- a/tests/test_live_view/live_view_widget_style_unset.c
+++ b/tests/test_live_view/live_view_widget_style_unset.c
@@ -134,34 +134,6 @@ END_TEST
 /**
  * @addtogroup live_view_widget_style_unset
  * @{
- * <tr>
- * <td>live_view_widget_style_unset</td>
- * <td>live_view_widget_style_unset_test_n2</td>
- * <td>
- * @precondition
- * @step 1 None
- *
- * @procedure
- * @step 1 Call live_view_widget_style_unset.
- * @step 2 Check returned value.
- * </td>
- * <td>NULL</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_widget_style_unset_test_n2)
-{
-   Eina_Bool res = EINA_TRUE;
-
-   res = live_view_widget_style_unset(NULL);
-   ck_assert_msg(res == EINA_FALSE, "Unset style from NULL pointer live 
view.");
-}
-END_TEST
-
-/**
- * @addtogroup live_view_widget_style_unset
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_live_view/test_live_view.c 
b/tests/test_live_view/test_live_view.c
index da42c36..1f279e9 100644
--- a/tests/test_live_view/test_live_view.c
+++ b/tests/test_live_view/test_live_view.c
@@ -23,27 +23,15 @@ Suite* test_suite (void) {
    Suite *suite = suite_create("live_view_test");
    TCase *tcase = tcase_create("TCase");
 
-   tcase_add_test(tcase, live_view_add_test_p);
-   tcase_add_test(tcase, live_view_add_test_n);
 
+   tcase_add_test(tcase, live_view_add_test_p);
    tcase_add_test(tcase, live_view_free_test_p);
-   tcase_add_test(tcase, live_view_free_test_n);
-
+   tcase_add_test(tcase, live_view_theme_update_test_p1);
+   tcase_add_test(tcase, live_view_theme_update_test_p2);
    tcase_add_test(tcase, live_view_widget_style_set_test_p1);
    tcase_add_test(tcase, live_view_widget_style_set_test_p2);
-   tcase_add_test(tcase, live_view_widget_style_set_test_n1);
-   tcase_add_test(tcase, live_view_widget_style_set_test_n2);
-   tcase_add_test(tcase, live_view_widget_style_set_test_n3);
-
-   tcase_add_test(tcase, live_view_widget_style_unset_test_p);
    tcase_add_test(tcase, live_view_widget_style_unset_test_n1);
-   tcase_add_test(tcase, live_view_widget_style_unset_test_n2);
-
-   tcase_add_test(tcase, live_view_theme_update_test_p1);
-   tcase_add_test(tcase, live_view_theme_update_test_p2);
-   tcase_add_test(tcase, live_view_theme_update_test_n1);
-   tcase_add_test(tcase, live_view_theme_update_test_n2);
-   tcase_add_test(tcase, live_view_theme_update_test_n3);
+   tcase_add_test(tcase, live_view_widget_style_unset_test_p);
 
    suite_add_tcase(suite, tcase);
 
diff --git a/tests/test_live_view/test_live_view.h 
b/tests/test_live_view/test_live_view.h
index ef30992..f7cb71c 100644
--- a/tests/test_live_view/test_live_view.h
+++ b/tests/test_live_view/test_live_view.h
@@ -27,23 +27,10 @@
 #define TEST_NAME "live_view"
 
 void live_view_add_test_p(int);
-void live_view_add_test_n(int);
-
+void live_view_free_test_p(int);
+void live_view_theme_update_test_p1(int);
+void live_view_theme_update_test_p2(int);
 void live_view_widget_style_set_test_p1(int);
 void live_view_widget_style_set_test_p2(int);
-void live_view_widget_style_set_test_n1(int);
-void live_view_widget_style_set_test_n2(int);
-void live_view_widget_style_set_test_n3(int);
-
-void live_view_widget_style_unset_test_p(int);
 void live_view_widget_style_unset_test_n1(int);
-void live_view_widget_style_unset_test_n2(int);
-
-void live_view_theme_update_test_p1(int);
-void live_view_theme_update_test_p2(int);
-void live_view_theme_update_test_n1(int);
-void live_view_theme_update_test_n2(int);
-void live_view_theme_update_test_n3(int);
-
-void live_view_free_test_p(int);
-void live_view_free_test_n(int);
+void live_view_widget_style_unset_test_p(int);

-- 


Reply via email to