rimmed pushed a commit to branch master.

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

commit 187df442643f7bae991fefd1b65e54cc1930884d
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Jul 21 09:57:49 2015 +0300

    UTC: fix project_manager tests
---
 .../pm_style_resource_export.c                     | 183 ---------------------
 tests/test_project_manager/test_project_manager.c  |   3 -
 tests/test_project_manager/test_project_manager.h  |   4 -
 3 files changed, 190 deletions(-)

diff --git a/tests/test_project_manager/pm_style_resource_export.c 
b/tests/test_project_manager/pm_style_resource_export.c
index 237ada4..a6a6bff 100644
--- a/tests/test_project_manager/pm_style_resource_export.c
+++ b/tests/test_project_manager/pm_style_resource_export.c
@@ -114,189 +114,6 @@ END_TEST
 /**
  * @addtogroup pm_style_resource_export
  * @{
- * <tr>
- * <td>pm_style_resource_export</td>
- * <td>pm_style_resource_export_test_n1</td>
- * <td>
- * This test check the export style resources  procedure.<br>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Initialize Application Data structure.
- * @step 3 Create directory for export resources.
- * @step 4 Initialize main window.
- * @step 5 Open project.
- * @step 6 Fill widget inlist with data.
- * @step 7 Find style that represent the group "elm/radio/base/def"
- * @step 8 Load style into project.
- *
- * @procedure
- * @step 1 Call pm_style_resource_export;
- * @step 2 Check returned value.
- * </td>
- * <td>NULL, (Style *)style, (Eina_Stringshare *)path</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-
-EFLETE_TEST(pm_style_resource_export_test_n1)
-{
-   App_Data *ap = NULL;
-   Eina_Bool result = EINA_TRUE;
-   Style *style = NULL;
-   Eina_Stringshare *path = NULL;
-
-   elm_init(0,0);
-   app_init();
-   setup("pm_style_resource_export_test_n1");
-   path = eina_stringshare_add("./pm_style_resource_export_test_n1/export");
-   ecore_file_mkdir(path);
-
-   ap = app_data_get();
-   ui_main_window_add(ap);
-   ap->project = pm_project_open("./pm_style_resource_export_test_n1/"
-                                  "pm_style_resource_export_test_n1.pro");
-   wm_widgets_list_objects_load(ap->project->widgets,
-                                evas_object_evas_get(ap->win),
-                                ap->project->mmap_file);
-   style = wm_style_object_find(ap->project->widgets, "elm/radio/base/def");
-   ui_style_clicked(ap, style);
-
-   result = pm_style_resource_export(NULL, style, path);
-   ck_assert_msg(!result, "Exported resources without project");
-
-   pm_project_close(ap->project);
-   ap->project = NULL;
-   ui_main_window_del(ap);
-   app_shutdown();
-   teardown("./pm_style_resource_export_test_n1");
-   eina_stringshare_del(path);
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup pm_style_resource_export
- * @{
- * <tr>
- * <td>pm_style_resource_export</td>
- * <td>pm_style_resource_export_test_n2</td>
- * <td>
- * This test check the export style resources  procedure.<br>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Initialize Application Data structure.
- * @step 3 Create directory for export resources.
- * @step 4 Initialize main window.
- * @step 5 Open project.
- * @step 6 Fill widget inlist with data.
- *
- * @procedure
- * @step 1 Call pm_style_resource_export;
- * @step 2 Check returned value.
- * </td>
- * <td>(Project *)ap->project, NULL, (Eina_Stringshare *)path</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-
-EFLETE_TEST(pm_style_resource_export_test_n2)
-{
-   App_Data *ap = NULL;
-   Eina_Bool result = EINA_TRUE;
-   Eina_Stringshare *path = NULL;
-
-   elm_init(0,0);
-   app_init();
-   setup("pm_style_resource_export_test_n2");
-   path = eina_stringshare_add("./pm_style_resource_export_test_n2/export");
-   ecore_file_mkdir(path);
-
-   ap = app_data_get();
-   ui_main_window_add(ap);
-   ap->project = pm_project_open("./pm_style_resource_export_test_n2/"
-                                  "pm_style_resource_export_test_n2.pro");
-   wm_widgets_list_objects_load(ap->project->widgets,
-                                evas_object_evas_get(ap->win),
-                                ap->project->mmap_file);
-
-   result = pm_style_resource_export(ap->project, NULL, path);
-   ck_assert_msg(!result, "Exported resources without style");
-
-   pm_project_close(ap->project);
-   ap->project = NULL;
-   ui_main_window_del(ap);
-   app_shutdown();
-   teardown("./pm_style_resource_export_test_n2");
-   eina_stringshare_del(path);
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup pm_style_resource_export
- * @{
- * <tr>
- * <td>pm_style_resource_export</td>
- * <td>pm_style_resource_export_test_n3</td>
- * <td>
- * This test check the export style resources  procedure.<br>
- * @precondition
- * @step 1 Initialize elementary library.
- * @step 2 Initialize Application Data structure.
- * @step 3 Create directory for export resources.
- * @step 4 Initialize main window.
- * @step 5 Open project.
- * @step 6 Fill widget inlist with data.
- * @step 7 Find style that represent the group "elm/radio/base/def"
- * @step 8 Load style into project.
- *
- * @procedure
- * @step 1 Call pm_style_resource_export;
- * @step 2 Check returned value.
- * </td>
- * <td>(Project *)ap->project, (Style *)style, NULL</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-
-EFLETE_TEST(pm_style_resource_export_test_n3)
-{
-   App_Data *ap = NULL;
-   Eina_Bool result = EINA_TRUE;
-   Style *style = NULL;
-
-   elm_init(0,0);
-   app_init();
-   setup("pm_style_resource_export_test_n3");
-
-   ap = app_data_get();
-   ui_main_window_add(ap);
-   ap->project = pm_project_open("./pm_style_resource_export_test_n3/"
-                                  "pm_style_resource_export_test_n3.pro");
-   wm_widgets_list_objects_load(ap->project->widgets,
-                                evas_object_evas_get(ap->win),
-                                ap->project->mmap_file);
-   style = wm_style_object_find(ap->project->widgets, "elm/radio/base/def");
-   ui_style_clicked(ap, style);
-
-   result = pm_style_resource_export(ap->project, style, NULL);
-   ck_assert_msg(!result, "Exported resources without path");
-
-   pm_project_close(ap->project);
-   ap->project = NULL;
-   ui_main_window_del(ap);
-   app_shutdown();
-   teardown("./pm_style_resource_export_test_n3");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup pm_style_resource_export
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_project_manager/test_project_manager.c 
b/tests/test_project_manager/test_project_manager.c
index a1a77c3..9f9ee99 100644
--- a/tests/test_project_manager/test_project_manager.c
+++ b/tests/test_project_manager/test_project_manager.c
@@ -54,9 +54,6 @@ Suite* test_suite (void) {
    tcase_add_test(tcase, pm_project_meta_data_get_test_p);
 
    tcase_add_test(tcase, pm_style_resource_export_test_p);
-   tcase_add_test(tcase, pm_style_resource_export_test_n1);
-   tcase_add_test(tcase, pm_style_resource_export_test_n2);
-   tcase_add_test(tcase, pm_style_resource_export_test_n3);
 
    suite_add_tcase(suite, tcase);
    return suite;
diff --git a/tests/test_project_manager/test_project_manager.h 
b/tests/test_project_manager/test_project_manager.h
index f5e283d..1f59bc1 100644
--- a/tests/test_project_manager/test_project_manager.h
+++ b/tests/test_project_manager/test_project_manager.h
@@ -50,7 +50,3 @@ void pm_project_meta_data_set_test_p(int);
 void pm_project_meta_data_get_test_p(int);
 
 void pm_style_resource_export_test_p(int);
-void pm_style_resource_export_test_n1(int);
-void pm_style_resource_export_test_n2(int);
-void pm_style_resource_export_test_n3(int);
-

-- 


Reply via email to