rimmed pushed a commit to branch master.

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

commit fc1b1b588fba677c8de5b22a65b90dd5891c2aec
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Jul 21 10:23:22 2015 +0300

    UTC: fix live_prop tests
---
 tests/test_live_view_prop/live_view_property_add.c |  33 -----
 .../test_live_view_prop/live_view_property_free.c  |  32 -----
 .../live_view_property_style_set.c                 | 148 ---------------------
 .../live_view_property_style_unset.c               |  86 +-----------
 tests/test_live_view_prop/test_live_view_prop.c    |   7 -
 tests/test_live_view_prop/test_live_view_prop.h    |   9 --
 6 files changed, 1 insertion(+), 314 deletions(-)

diff --git a/tests/test_live_view_prop/live_view_property_add.c 
b/tests/test_live_view_prop/live_view_property_add.c
index 42bacd8..66f4df9 100644
--- a/tests/test_live_view_prop/live_view_property_add.c
+++ b/tests/test_live_view_prop/live_view_property_add.c
@@ -68,39 +68,6 @@ END_TEST
 /**
  * @addtogroup live_view_property_add
  * @{
- * <tr>
- * <td>live_view_property_add</td>
- * <td>live_view_property_add_test_n</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- *
- * @procedure
- * @step 1 Call live_view_property_add.
- * @step 2 Check returned pointer.
- * </td>
- * <td>NULL</td>
- * <td>NULL pointer returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_property_add_test_n)
-{
-   Evas_Object *live = NULL;
-
-   elm_init(0, 0);
-
-   live = live_view_property_add(NULL, false);
-   ck_assert_msg(live == NULL, "Live view property object was created "
-                               "with NULL pointer parent");
-
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_property_add
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_live_view_prop/live_view_property_free.c 
b/tests/test_live_view_prop/live_view_property_free.c
index 2204934..64a5ace 100644
--- a/tests/test_live_view_prop/live_view_property_free.c
+++ b/tests/test_live_view_prop/live_view_property_free.c
@@ -73,38 +73,6 @@ END_TEST
 /**
  * @addtogroup live_view_property_free
  * @{
- * <tr>
- * <td>live_view_property_free</td>
- * <td>live_view_property_free_test_n</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- *
- * @procedure
- * @step 1 Call live_view_property_free.
- * @step 2 Check result.
- * </td>
- * <td>NULL</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_property_free_test_n)
-{
-   Eina_Bool result = EINA_FALSE;
-
-   elm_init(0, 0);
-
-   result = live_view_property_free(NULL);
-   ck_assert_msg(result == EINA_FALSE, "Something was deleted......");
-
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_property_free
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_live_view_prop/live_view_property_style_set.c 
b/tests/test_live_view_prop/live_view_property_style_set.c
index 5b564ce..d2e94f6 100644
--- a/tests/test_live_view_prop/live_view_property_style_set.c
+++ b/tests/test_live_view_prop/live_view_property_style_set.c
@@ -82,154 +82,6 @@ END_TEST
 /**
  * @addtogroup live_view_property_style_set
  * @{
- * <tr>
- * <td>live_view_property_style_set</td>
- * <td>live_view_property_style_set_test_n1</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Create parent window.
- * @step 3 Create style object as style.
- * @step 4 Load style data from edje file.
- * @step 5 Create live view property object.
- *
- * @procedure
- * @step 1 Call live_view_property_style_set.
- * @step 2 Check returned value.
- * </td>
- * <td>(Evas_Object *)live_view_prop, (Evas_Object *)object, (Style *)style, 
(const char *) widget = "win", (Evas_Object *)parent</td>
- * <td>EINA_TRUE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_property_style_set_test_n1)
-{
-   Evas *e = NULL;
-   Evas_Object *parent = NULL;
-   Style *style = NULL;
-   Eina_Bool res = EINA_FALSE;
-   Eina_File *mmap_file = NULL;
-
-   elm_init(0, 0);
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   e = evas_object_evas_get(parent);
-   mmap_file = eina_file_open("./edj_build/live_view_property.edj", 
EINA_FALSE);
-   style = wm_style_add("def", "elm/radio/base/def", STYLE, NULL);
-   wm_style_data_load(style, e, mmap_file);
-
-   res = live_view_property_style_set(parent, parent, style, "win", parent);
-   ck_assert_msg(res == EINA_FALSE, "Given, not live view prop, object contain 
live view prop data in it.");
-
-   wm_style_free(style);
-   eina_file_close(mmap_file);
-   evas_object_del(parent);
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_property_style_set
- * @{
- * <tr>
- * <td>live_view_property_style_set</td>
- * <td>live_view_property_style_set_test_n2</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Create parent window.
- * @step 3 Create style object as style.
- * @step 4 Create live view property object.
- *
- * @procedure
- * @step 1 Call live_view_property_style_set.
- * @step 2 Check returned value.
- * </td>
- * <td>(Evas_Object *)live_view_prop, (Evas_Object *)object, (Style *)style, 
(const char *) widget = "win", (Evas_Object *)parent</td>
- * <td>EINA_TRUE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_property_style_set_test_n2)
-{
-   Evas_Object *parent = NULL, *live_view_prop = NULL;
-   Style *style = NULL;
-   Eina_Bool res = EINA_FALSE;
-
-   elm_init(0, 0);
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   style = wm_style_add("def", "elm/radio/base/def", STYLE, NULL);
-   live_view_prop = live_view_property_add(parent, false);
-
-   res = live_view_property_style_set(live_view_prop, parent, style, "win", 
parent);
-   ck_assert_msg(res == EINA_FALSE, "Style was set into live view prop.");
-
-   wm_style_free(style);
-   evas_object_del(parent);
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_property_style_set
- * @{
- * <tr>
- * <td>live_view_property_style_set</td>
- * <td>live_view_property_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 Create live view property object.
- *
- * @procedure
- * @step 1 Call live_view_property_style_set with first parameter as NULL.
- * @step 2 Check returned value.
- * @step 1 Call live_view_property_style_set with second parameter as NULL.
- * @step 2 Check returned value.
- * @step 1 Call live_view_property_style_set with third parameter as NULL.
- * @step 2 Check returned value.
- * @step 1 Call live_view_property_style_set with fourth parameter as NULL.
- * @step 2 Check returned value.
- * @step 1 Call live_view_property_style_set with fifth parameter as NULL.
- * @step 2 Check returned value.
- * </td>
- * <td>NULL, NULL, NULL, NULL</td>
- * <td>All checks passed</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_property_style_set_test_n3)
-{
-   Evas_Object *parent = NULL, *live_view_prop = NULL;
-   Style *style = NULL;
-   Eina_Bool res = EINA_FALSE;
-
-   elm_init(0, 0);
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   style = wm_style_add("def", "elm/radio/base/def", STYLE, NULL);
-   live_view_prop = live_view_property_add(parent, false);
-
-   res = live_view_property_style_set(NULL, parent, style, "win", parent);
-   ck_assert_msg(res == EINA_FALSE, "Style was set into live view prop with 
live_view_prop = NULL.");
-   res = live_view_property_style_set(live_view_prop, NULL, style, "win", 
parent);
-   ck_assert_msg(res == EINA_FALSE, "Style was set into live view prop with 
object = NULL.");
-   res = live_view_property_style_set(live_view_prop, parent, NULL, "win", 
parent);
-   ck_assert_msg(res == EINA_FALSE, "Style was set into live view prop with 
style = NULL.");
-   res = live_view_property_style_set(live_view_prop, parent, style, NULL, 
parent);
-   ck_assert_msg(res == EINA_FALSE, "Style was set into live view prop with 
widget = NULL.");
-   res = live_view_property_style_set(live_view_prop, parent, style, "win", 
NULL);
-   ck_assert_msg(res == EINA_FALSE, "Style was set into live view prop with 
widget = NULL.");
-
-   wm_style_free(style);
-   evas_object_del(parent);
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_property_style_set
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_live_view_prop/live_view_property_style_unset.c 
b/tests/test_live_view_prop/live_view_property_style_unset.c
index 57e14d5..0af26a0 100644
--- a/tests/test_live_view_prop/live_view_property_style_unset.c
+++ b/tests/test_live_view_prop/live_view_property_style_unset.c
@@ -65,7 +65,7 @@ EFLETE_TEST(live_view_property_style_unset_test_p)
    elm_init(0, 0);
    parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
    e = evas_object_evas_get(parent);
-   mmap_file = 
eina_file_open("./edj_build/live_view_property_style_unset.edj", EINA_FALSE);
+   mmap_file = eina_file_open("./edj_build/live_view_property.edj", 
EINA_FALSE);
    style = wm_style_add("def", "elm/radio/base/def", STYLE, NULL);
    wm_style_data_load(style, e, mmap_file);
    live_view_prop = live_view_property_add(parent, false);
@@ -84,90 +84,6 @@ END_TEST
 /**
  * @addtogroup live_view_property_style_unset
  * @{
- * <tr>
- * <td>live_view_property_style_unset</td>
- * <td>live_view_property_style_unset_test_n1</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Create parent window.
- * @step 3 Mmap edj file.
- * @step 4 Create style object as style.
- * @step 5 Load style data from edje file.
- * @step 6 Create object that is not live view property.
- * @step 7 Load object into live view property
- *
- * @procedure
- * @step 1 Call live_view_property_style_unset.
- * @step 2 Check returned value.
- * </td>
- * <td>(Evas_Object *)live_view_prop</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_property_style_unset_test_n1)
-{
-   Evas *e = NULL;
-   Evas_Object *parent = NULL, *live_view_prop = NULL;
-   Style *style = NULL;
-   Eina_Bool res = EINA_FALSE;
-   Eina_File *mmap_file = NULL;
-
-   elm_init(0, 0);
-   parent = elm_win_add(NULL, "test", ELM_WIN_BASIC);
-   e = evas_object_evas_get(parent);
-   mmap_file = 
eina_file_open("./edj_build/live_view_property_style_unset.edj", EINA_FALSE);
-   style = wm_style_add("def", "elm/radio/base/def", STYLE, NULL);
-   wm_style_data_load(style, e, mmap_file);
-   live_view_prop = elm_bg_add(parent);
-   live_view_property_style_set(live_view_prop, parent, style, "win", parent);
-
-   res = live_view_property_style_unset(parent);
-   ck_assert_msg(res == EINA_FALSE, "Style was unset but shouldn't.");
-
-   wm_style_free(style);
-   eina_file_close(mmap_file);
-   evas_object_del(parent);
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_property_style_unset
- * @{
- * <tr>
- * <td>live_view_property_style_unset</td>
- * <td>live_view_property_style_unset_test_n2</td>
- * <td>
- * @precondition
- * @step 1 Initialize elementary library.
- *
- * @procedure
- * @step 1 Call live_view_property_style_unset.
- * @step 2 Check returned value.
- * </td>
- * <td>NULL</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(live_view_property_style_unset_test_n2)
-{
-   Eina_Bool res = EINA_FALSE;
-
-   elm_init(0, 0);
-
-   res = live_view_property_style_unset(NULL);
-   ck_assert_msg(res == EINA_FALSE, "Style was unset but shouldn't.");
-
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup live_view_property_style_unset
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_live_view_prop/test_live_view_prop.c 
b/tests/test_live_view_prop/test_live_view_prop.c
index c7dea20..178e394 100644
--- a/tests/test_live_view_prop/test_live_view_prop.c
+++ b/tests/test_live_view_prop/test_live_view_prop.c
@@ -24,19 +24,12 @@ Suite* test_suite (void) {
    TCase *tcase = tcase_create("TCase");
 
    tcase_add_test(tcase, live_view_property_add_test_p);
-   tcase_add_test(tcase, live_view_property_add_test_n);
 
    tcase_add_test(tcase, live_view_property_free_test_p);
-   tcase_add_test(tcase, live_view_property_free_test_n);
 
    tcase_add_test(tcase, live_view_property_style_set_test_p);
-   tcase_add_test(tcase, live_view_property_style_set_test_n1);
-   tcase_add_test(tcase, live_view_property_style_set_test_n2);
-   tcase_add_test(tcase, live_view_property_style_set_test_n3);
 
    tcase_add_test(tcase, live_view_property_style_unset_test_p);
-   tcase_add_test(tcase, live_view_property_style_unset_test_n1);
-   tcase_add_test(tcase, live_view_property_style_unset_test_n2);
 
    suite_add_tcase(suite, tcase);
 
diff --git a/tests/test_live_view_prop/test_live_view_prop.h 
b/tests/test_live_view_prop/test_live_view_prop.h
index 07cc69d..6e14999 100644
--- a/tests/test_live_view_prop/test_live_view_prop.h
+++ b/tests/test_live_view_prop/test_live_view_prop.h
@@ -25,18 +25,9 @@
  */
 
 void live_view_property_add_test_p(int);
-void live_view_property_add_test_n(int);
 
 void live_view_property_free_test_p(int);
-void live_view_property_free_test_n(int);
 
 void live_view_property_style_set_test_p(int);
-void live_view_property_style_set_test_n1(int);
-void live_view_property_style_set_test_n2(int);
-void live_view_property_style_set_test_n3(int);
-void live_view_property_style_set_test_n4(int);
-void live_view_property_style_set_test_n5(int);
 
 void live_view_property_style_unset_test_p(int);
-void live_view_property_style_unset_test_n1(int);
-void live_view_property_style_unset_test_n2(int);

-- 


Reply via email to