rimmed pushed a commit to branch master.

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

commit 9ebc5d451012bde4073c711c4146e8919da95af5
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Tue Jul 21 10:52:44 2015 +0300

    UTC: fix image_editor tests
---
 tests/test_image_editor/image_editor_file_choose.c | 52 --------------
 tests/test_image_editor/image_editor_window_add.c  | 80 ----------------------
 tests/test_image_editor/test_image_editor.c        |  3 -
 tests/test_image_editor/test_image_editor.h        |  3 -
 4 files changed, 138 deletions(-)

diff --git a/tests/test_image_editor/image_editor_file_choose.c 
b/tests/test_image_editor/image_editor_file_choose.c
index 90377e0..3602080 100644
--- a/tests/test_image_editor/image_editor_file_choose.c
+++ b/tests/test_image_editor/image_editor_file_choose.c
@@ -139,58 +139,6 @@ END_TEST
  * @{
  * <tr>
  * <td>image_editor_file_choose</td>
- * <td>image_editor_file_choose_test_n2</td>
- * <td>
- * @precondition
- * @step 1 init elemantary
- * @step 2 init app
- * @step 3 create main window
- * @step 4 load project
- * @step 5 call wm_widgets_list_objects_load
- * @step 6 add image editor
- *
- * @procedure
- * @step 1 call image_editor_file_choose
- * @step 2 check returned value
- *
- * </td>
- * <td>NULL, "not_correct_image_name"</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (image_editor_file_choose_test_n2)
-{
-   elm_init(0,0);
-   setup("image_editor_file_choose_test_n2");
-
-   App_Data *app;
-   app_init();
-   Evas_Object *images;
-
-   app = app_data_get();
-   ui_main_window_add(app);
-   app->project = 
pm_project_open("./image_editor_file_choose_test_n2/image_editor_file_choose_test_n2.pro");
-   wm_widgets_list_objects_load(app->project->widgets,
-                                evas_object_evas_get(app->win),
-                                app->project->mmap_file);
-   images = image_editor_window_add(app->project, SINGLE);
-
-   ck_assert_msg(image_editor_file_choose(NULL, "not_correct_image_name") == 
EINA_FALSE,
-                 "Selected image that not exist");
-
-   evas_object_del(images);
-   app_shutdown();
-   teardown("./image_editor_file_choose_test_n2");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup image_editor_file_choose
- * @{
- * <tr>
- * <td>image_editor_file_choose</td>
  * <td>image_editor_file_choose_test_n3</td>
  * <td>
  * @precondition
diff --git a/tests/test_image_editor/image_editor_window_add.c 
b/tests/test_image_editor/image_editor_window_add.c
index a8bd141..b6add75 100644
--- a/tests/test_image_editor/image_editor_window_add.c
+++ b/tests/test_image_editor/image_editor_window_add.c
@@ -126,86 +126,6 @@ END_TEST
 /**
  * @addtogroup image_editor_window_add
  * @{
- * <tr>
- * <td>image_editor_window_add</td>
- * <td>image_editor_window_add_test_n1</td>
- * <td>
- * @precondition
- * @step 1 init elemantary
- * @step 2 init app
- * @step 3 create main window
- *
- * @procedure
- * @step 1 call image_editor_window_add
- * @step 2 check returned value
- *
- * </td>
- * <td>NULL, SINGLE</td>
- * <td>NULL Pointer returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (image_editor_window_add_test_n1)
-{
-   elm_init(0,0);
-   App_Data *app;
-   app_init();
-   app = app_data_get();
-   ui_main_window_add(app);
-
-   ck_assert_msg(image_editor_window_add(NULL, SINGLE) == NULL,
-                 "Created image editor in SINGLE mode for NULL project");
-
-   app_shutdown();
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup image_editor_window_add
- * @{
- * <tr>
- * <td>image_editor_window_add</td>
- * <td>image_editor_window_add_test_n2</td>
- * <td>
- * @precondition
- * @step 1 init elemantary
- * @step 2 init app
- * @step 3 create main window
- *
- * @procedure
- * @step 1 call image_editor_window_add
- * @step 2 check returned value
- *
- * </td>
- * <td>NULL, MULTIPLE</td>
- * <td>NULL Pointer returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (image_editor_window_add_test_n2)
-{
-   elm_init(0,0);
-   App_Data *app;
-   app_init();
-   Evas_Object *images;
-
-   app = app_data_get();
-   ui_main_window_add(app);
-
-   images = image_editor_window_add(NULL, MULTIPLE);
-   ck_assert_msg(images == NULL,
-                 "Created image editor in MULTIPLE mode for NULL project");
-
-   evas_object_del(images);
-   app_shutdown();
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup image_editor_window_add
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_image_editor/test_image_editor.c 
b/tests/test_image_editor/test_image_editor.c
index d17b145..8ba35df 100644
--- a/tests/test_image_editor/test_image_editor.c
+++ b/tests/test_image_editor/test_image_editor.c
@@ -24,11 +24,8 @@ Suite* test_suite (void) {
    TCase *tcase = tcase_create("TCase");
    tcase_add_test(tcase, image_editor_window_add_test_p1);
    tcase_add_test(tcase, image_editor_window_add_test_p2);
-   tcase_add_test(tcase, image_editor_window_add_test_n1);
-   tcase_add_test(tcase, image_editor_window_add_test_n2);
    tcase_add_test(tcase, image_editor_file_choose_test_p);
    tcase_add_test(tcase, image_editor_file_choose_test_n1);
-   tcase_add_test(tcase, image_editor_file_choose_test_n2);
    tcase_add_test(tcase, image_editor_file_choose_test_n3);
    suite_add_tcase(suite, tcase);
    return suite;
diff --git a/tests/test_image_editor/test_image_editor.h 
b/tests/test_image_editor/test_image_editor.h
index ee6c992..71523f4 100644
--- a/tests/test_image_editor/test_image_editor.h
+++ b/tests/test_image_editor/test_image_editor.h
@@ -29,10 +29,7 @@
 
 void image_editor_window_add_test_p1(int);
 void image_editor_window_add_test_p2(int);
-void image_editor_window_add_test_n1(int);
-void image_editor_window_add_test_n2(int);
 
 void image_editor_file_choose_test_p(int);
 void image_editor_file_choose_test_n1(int);
-void image_editor_file_choose_test_n2(int);
 void image_editor_file_choose_test_n3(int);

-- 


Reply via email to