rimmed pushed a commit to branch master.

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

commit e8279b40b5253abdda870ded3ebdcc098d0081b1
Author: Andrii Kroitor <an.kroi...@samsung.com>
Date:   Thu Jul 23 12:05:36 2015 +0300

    UTC: fix sound_editor tests
---
 tests/test_sound_editor/sound_editor_file_choose.c | 130 ---------------------
 tests/test_sound_editor/sound_editor_window_add.c  | 125 --------------------
 tests/test_sound_editor/test_sound_editor.c        |   6 -
 tests/test_sound_editor/test_sound_editor.h        |   6 -
 4 files changed, 267 deletions(-)

diff --git a/tests/test_sound_editor/sound_editor_file_choose.c 
b/tests/test_sound_editor/sound_editor_file_choose.c
index 0ea22b3..81573b9 100644
--- a/tests/test_sound_editor/sound_editor_file_choose.c
+++ b/tests/test_sound_editor/sound_editor_file_choose.c
@@ -87,88 +87,6 @@ END_TEST
  * @{
  * <tr>
  * <td>sound_editor_file_choose</td>
- * <td>sound_editor_file_choose_test_n1</td>
- * <td>
- * @precondition
- * @step 1 init elemantary
- * @step 2 init app
- * @step 3 create main window
- * @step 4 load project
- * @step 5 add sound editor
- *
- * @procedure
- * @step 1 call sound_editor_file_choose
- * @step 2 check returned value
- *
- * </td>
- * <td>(Evas_Object *) sound_editor, (const char *) 
"not_correct_sound_name"</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (sound_editor_file_choose_test_n1)
-{
-   elm_init(0,0);
-   setup("sound_editor_file_choose_test_n1");
-
-   App_Data *app;
-   app_init();
-   Evas_Object *sound_editor;
-
-   app = app_data_get();
-   ui_main_window_add(app);
-   app->project = 
pm_project_open("./sound_editor_file_choose_test_n1/sound_editor_file_choose_test_n1.pro");
-   sound_editor = sound_editor_window_add(app->project, SOUND_EDITOR_EDIT);
-
-   ck_assert_msg(sound_editor_file_choose(sound_editor, 
"not_correct_sound_name") == EINA_FALSE,
-                 "Selected sound that not exist");
-
-   evas_object_del(sound_editor);
-   app_shutdown();
-   teardown("./sound_editor_file_choose_test_n1");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup sound_editor_file_choose
- * @{
- * <tr>
- * <td>sound_editor_file_choose</td>
- * <td>sound_editor_file_choose_test_n2</td>
- * <td>
- * @precondition
- * @step 1 init elemantary
- * @step 2 init app
- *
- * @procedure
- * @step 1 call sound_editor_file_choose
- * @step 2 check returned value
- *
- * </td>
- * <td>NULL, (const char *) "not_correct_sound_name"</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (sound_editor_file_choose_test_n2)
-{
-   elm_init(0,0);
-   app_init();
-
-   ck_assert_msg(sound_editor_file_choose(NULL, "not_correct_sound_name") == 
EINA_FALSE,
-                 "Selected sound that not exist");
-
-   app_shutdown();
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup sound_editor_file_choose
- * @{
- * <tr>
- * <td>sound_editor_file_choose</td>
  * <td>sound_editor_file_choose_test_n3</td>
  * <td>
  * @precondition
@@ -214,54 +132,6 @@ END_TEST
 /**
  * @addtogroup sound_editor_file_choose
  * @{
- * <tr>
- * <td>sound_editor_file_choose</td>
- * <td>sound_editor_file_choose_test_n4</td>
- * <td>
- * @precondition
- * @step 1 init elemantary
- * @step 2 init app
- * @step 3 create main window
- * @step 4 load project
- * @step 5 add button (not correct evas object)
- *
- * @procedure
- * @step 1 call sound_editor_file_choose
- * @step 2 check returned value
- *
- * </td>
- * <td>(Evas_Object *) not_correct_object, (const char *) "key-tap"</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (sound_editor_file_choose_test_n4)
-{
-   elm_init(0,0);
-   setup("sound_editor_file_choose_test_n4");
-
-   App_Data *app;
-   app_init();
-   Evas_Object *not_corect_object;
-
-   app = app_data_get();
-   ui_main_window_add(app);
-   app->project = 
pm_project_open("./sound_editor_file_choose_test_n4/sound_editor_file_choose_test_n4.pro");
-   not_corect_object = elm_button_add(app->win);
-
-   ck_assert_msg(sound_editor_file_choose(not_corect_object, 
"not_correct_sound_name") == EINA_FALSE,
-                 "Selected sound from not correct object");
-
-   evas_object_del(not_corect_object);
-   app_shutdown();
-   teardown("./sound_editor_file_choose_test_n4");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup sound_editor_file_choose
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_sound_editor/sound_editor_window_add.c 
b/tests/test_sound_editor/sound_editor_window_add.c
index 1f0b122..8d13d41 100644
--- a/tests/test_sound_editor/sound_editor_window_add.c
+++ b/tests/test_sound_editor/sound_editor_window_add.c
@@ -170,131 +170,6 @@ END_TEST
 /**
  * @addtogroup sound_editor_window_add
  * @{
- * <tr>
- * <td>sound_editor_window_add</td>
- * <td>sound_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 sound_editor_window_add
- * @step 2 check returned value
- *
- * </td>
- * <td>NULL, SINGLE</td>
- * <td>NULL Pointer returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (sound_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(sound_editor_window_add(NULL, SINGLE) == NULL,
-                 "Created sound editor in SINGLE mode for NULL project");
-
-   app_shutdown();
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup sound_editor_window_add
- * @{
- * <tr>
- * <td>sound_editor_window_add</td>
- * <td>sound_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 sound_editor_window_add
- * @step 2 check returned value
- *
- * </td>
- * <td>NULL, MULTIPLE</td>
- * <td>NULL Pointer returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (sound_editor_window_add_test_n2)
-{
-   elm_init(0,0);
-   App_Data *app;
-   app_init();
-   Evas_Object *sounds;
-
-   app = app_data_get();
-   ui_main_window_add(app);
-
-   sounds = sound_editor_window_add(NULL, MULTIPLE);
-   ck_assert_msg(sounds == NULL,
-                 "Created sound editor in MULTIPLE mode for NULL project");
-
-   evas_object_del(sounds);
-   app_shutdown();
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup sound_editor_window_add
- * @{
- * <tr>
- * <td>sound_editor_window_add</td>
- * <td>sound_editor_window_add_test_n3</td>
- * <td>
- * @precondition
- * @step 1 init elemantary
- * @step 2 init app
- * @step 3 load project without creating main window
- *
- * @procedure
- * @step 1 call sound_editor_window_add
- * @step 2 check returned value
- *
- * </td>
- * <td>(Project *) project, SINGLE</td>
- * <td>NULL Pointer returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (sound_editor_window_add_test_n3)
-{
-   App_Data *app;
-   Evas_Object *sounds;
-
-   elm_init(0,0);
-   setup("sound_editor_window_add_test_n3");
-   app_init();
-
-   app = app_data_get();
-   app->project = 
pm_project_open("./sound_editor_window_add_test_n3/sound_editor_window_add_test_n3.pro");
-
-   sounds = sound_editor_window_add(app->project, SINGLE);
-   ck_assert_msg(sounds == NULL,
-                 "Created sound editor in SINGLE  mode without creating main 
window");
-
-   evas_object_del(sounds);
-   app_shutdown();
-   teardown("./sound_editor_window_add_test_n3");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup sound_editor_window_add
- * @{
  * </TABLE>
  * @}
  * @}
diff --git a/tests/test_sound_editor/test_sound_editor.c 
b/tests/test_sound_editor/test_sound_editor.c
index 657735e..988d976 100644
--- a/tests/test_sound_editor/test_sound_editor.c
+++ b/tests/test_sound_editor/test_sound_editor.c
@@ -25,14 +25,8 @@ Suite* test_suite (void) {
    tcase_add_test(tcase, sound_editor_window_add_test_p1);
    tcase_add_test(tcase, sound_editor_window_add_test_p2);
    tcase_add_test(tcase, sound_editor_window_add_test_p3);
-   tcase_add_test(tcase, sound_editor_window_add_test_n1);
-   tcase_add_test(tcase, sound_editor_window_add_test_n2);
-   tcase_add_test(tcase, sound_editor_window_add_test_n3);
    tcase_add_test(tcase, sound_editor_file_choose_test_p);
-   tcase_add_test(tcase, sound_editor_file_choose_test_n1);
-   tcase_add_test(tcase, sound_editor_file_choose_test_n2);
    tcase_add_test(tcase, sound_editor_file_choose_test_n3);
-   tcase_add_test(tcase, sound_editor_file_choose_test_n4);
    tcase_add_test(tcase, sound_editor_added_sounds_free_test_n);
    suite_add_tcase(suite, tcase);
    return suite;
diff --git a/tests/test_sound_editor/test_sound_editor.h 
b/tests/test_sound_editor/test_sound_editor.h
index 24be502..ec79388 100644
--- a/tests/test_sound_editor/test_sound_editor.h
+++ b/tests/test_sound_editor/test_sound_editor.h
@@ -30,13 +30,7 @@
 void sound_editor_window_add_test_p1(int);
 void sound_editor_window_add_test_p2(int);
 void sound_editor_window_add_test_p3(int);
-void sound_editor_window_add_test_n1(int);
-void sound_editor_window_add_test_n2(int);
-void sound_editor_window_add_test_n3(int);
 void sound_editor_added_sounds_free_test_n(int);
 
 void sound_editor_file_choose_test_p(int);
-void sound_editor_file_choose_test_n1(int);
-void sound_editor_file_choose_test_n2(int);
 void sound_editor_file_choose_test_n3(int);
-void sound_editor_file_choose_test_n4(int);

-- 


Reply via email to