rimmed pushed a commit to branch master.

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

commit 9fef637a49bbde15a1199312bea6c1231561949f
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Mon Jan 25 16:45:15 2016 +0000

    UTC: update sound editor tests
---
 tests/Makefile.am                                  |   4 +-
 .../sound_editor_added_sounds_free.c               |  70 -----------
 tests/test_sound_editor/sound_editor_file_choose.c | 134 ---------------------
 tests/test_sound_editor/sound_editor_window_add.c  | 100 ++-------------
 tests/test_sound_editor/test_sound_editor.c        |   7 +-
 tests/test_sound_editor/test_sound_editor.h        |   8 +-
 6 files changed, 10 insertions(+), 313 deletions(-)

diff --git a/tests/Makefile.am b/tests/Makefile.am
index 62fa391..98d3a0f 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -181,9 +181,7 @@ colorclass_manager_test_LDADD = ${LD}
 
 sound_editor_test_SOURCES = \
 ../tests/test_sound_editor/test_sound_editor.c \
-../tests/test_sound_editor/sound_editor_window_add.c \
-../tests/test_sound_editor/sound_editor_file_choose.c \
-../tests/test_sound_editor/sound_editor_added_sounds_free.c
+../tests/test_sound_editor/sound_editor_window_add.c
 
 sound_editor_test_CFLAGS = ${FLAGS}
 sound_editor_test_LDADD = ${LD}
diff --git a/tests/test_sound_editor/sound_editor_added_sounds_free.c 
b/tests/test_sound_editor/sound_editor_added_sounds_free.c
deleted file mode 100644
index 8183359..0000000
--- a/tests/test_sound_editor/sound_editor_added_sounds_free.c
+++ /dev/null
@@ -1,70 +0,0 @@
-/**
- * Edje Theme Editor
- * Copyright (C) 2013-2014 Samsung Electronics.
- *
- * This file is part of Edje Theme Editor.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see www.gnu.org/licenses/lgpl.html.
- */
-
-#include "test_sound_editor.h"
-
-/**
- * @addtogroup sound_editor_test
- * @{
- * @addtogroup sound_editor_added_sounds_free
- * @{
- * sound_editor
- * <TABLE>
- * @}
- */
-
-/**
- * @addtogroup sound_editor_added_sounds_free
- * @{
- * <tr>
- * <td>sound_editor_added_sounds_free</td>
- * <td>sound_editor_added_sounds_free_test_n</td>
- * <td>
- * @precondition
- * @step 1 init elemantary
- *
- * @procedure
- * @step 1 Call sound_editor_added_sounds()
- * @step 2 Check if there is no segmentation fault
- * </td>
- * <td>NULL</td>
- * <td>there is no segmentation fault</td>
- * <td>_REAL_RESULT_</td>
- * <td>_PASSED_</td>
- * </tr>
- * @}
- */
-EFLETE_TEST(sound_editor_added_sounds_free_test_n)
-{
-   elm_init(0,0);
-   Eina_List *sounds = NULL;
-
-   sound_editor_added_sounds_free(sounds);
-
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup sound_editor_added_sounds_free
- * @{
- * </TABLE>
- * @}
- * @}
- */
diff --git a/tests/test_sound_editor/sound_editor_file_choose.c 
b/tests/test_sound_editor/sound_editor_file_choose.c
deleted file mode 100644
index e62a41f..0000000
--- a/tests/test_sound_editor/sound_editor_file_choose.c
+++ /dev/null
@@ -1,134 +0,0 @@
-/**
- * Edje Theme Editor
- * Copyright (C) 2013-2014 Samsung Electronics.
- *
- * This file is part of Edje Theme Editor.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; If not, see www.gnu.org/licenses/lgpl.html.
- */
-
-#include "test_sound_editor.h"
-#include "test_common.h"
-
-/**
- * @addtogroup sound_editor_test
- * @{
- * @addtogroup sound_editor_file_choose
- * @{
- * sound editor
- * <TABLE>
- * @}
- */
-
-/**
- * @addtogroup sound_editor_file_choose
- * @{
- * <tr>
- * <td>sound_editor_file_choose</td>
- * <td>sound_editor_file_choose_test_p</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 *) "key-tap"</td>
- * <td>EINA_TRUE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (sound_editor_file_choose_test_p)
-{
-   elm_init(0,0);
-
-   ck_assert(false);
-   app_init();
-   Evas_Object *sound_editor;
-
-   ui_main_window_add();
-   ap.project = setup("sound_editor_file_choose_test_p");
-
-   //wm_widgets_list_objects_load(ap.project->widgets, 
evas_object_evas_get(ap.win), ap.project->mmap_file);
-   sound_editor = sound_editor_window_add(SOUND_EDITOR_EDIT);
-
-   ck_assert_msg(sound_editor_file_choose(sound_editor, "key-tap") == 
EINA_TRUE,
-                 "failure: cannot select file");
-
-   pm_project_close(ap.project);
-   ap.project = NULL;
-
-   evas_object_del(sound_editor);
-   app_shutdown();
-   teardown("./sound_editor_file_choose_test_p");
-   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
- * @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>sound_editor, NULL</td>
- * <td>EINA_FALSE returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (sound_editor_file_choose_test_n3)
-{
-   elm_init(0,0);
-
-   app_init();
-   Evas_Object *sound_editor;
-
-   ui_main_window_add();
-   ap.project = setup("sound_editor_file_choose_test_n3");
-   sound_editor = sound_editor_window_add(SOUND_EDITOR_EDIT);
-
-   ck_assert_msg(sound_editor_file_choose(sound_editor, NULL) == EINA_FALSE, 
"Selected sound that not exist");
-
-   evas_object_del(sound_editor);
-   app_shutdown();
-   teardown("./sound_editor_file_choose_test_n3");
-   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 3454a8a..283d2f1 100644
--- a/tests/test_sound_editor/sound_editor_window_add.c
+++ b/tests/test_sound_editor/sound_editor_window_add.c
@@ -35,7 +35,7 @@
  * @{
  * <tr>
  * <td>sound_editor_window_add</td>
- * <td>sound_editor_window_add_test_p1</td>
+ * <td>sound_editor_window_add_test_p</td>
  * <td>
  * @precondition
  * @step 1 init elemantary
@@ -47,12 +47,12 @@
  * @step 1 Call sound_editor_window_add()
  * @step 2 Check returned pointer
  * </td>
- * <td>(Project *) project, SOUND_EDITOR_EDIT</td>
+ * <td>No data</td>
  * <td>returned pointer is not NULL</td>
  * </tr>
  * @}
  */
-EFLETE_TEST(sound_editor_window_add_test_p1)
+EFLETE_TEST(sound_editor_window_add_test_p)
 {
    elm_init(0,0);
 
@@ -60,100 +60,14 @@ EFLETE_TEST(sound_editor_window_add_test_p1)
 
    app_init();
    ui_main_window_add();
-   ap.project = setup("sound_editor_window_add_test_p1");
+   ap.project = setup("sound_editor_window_add_test_p");
 
-   sounds = sound_editor_window_add(SOUND_EDITOR_EDIT);
-   ck_assert_msg(sounds != NULL, "cannot create sound editor window in 
SOUND_EDITOR_EDIT mode");
+   sounds = sound_editor_window_add();
+   ck_assert_msg(sounds != NULL, "cannot create sound editor window");
 
    evas_object_del(sounds);
    app_shutdown();
-   teardown("./sound_editor_window_add_test_p1");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup sound_editor_window_add
- * @{
- * <tr>
- * <td>sound_editor_window_add</td>
- * <td>sound_editor_window_add_test_p2</td>
- * <td>
- * @precondition
- * @step 1 init elemantary
- * @step 2 init app
- * @step 3 create main window
- * @step 4 load project
- *
- * @procedure
- * @step 1 call sound_editor_window_add
- * @step 2 check returned value
- *
- * </td>
- * <td>(Project *) project, SOUND_EDITOR_SAMPLE_SELECT</td>
- * <td>Not NULL Pointer returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (sound_editor_window_add_test_p2)
-{
-   elm_init(0,0);
-
-   app_init();
-   Evas_Object *sounds;
-
-   ap.project = setup("sound_editor_window_add_test_p2");
-   ui_main_window_add();
-
-   sounds = sound_editor_window_add(SOUND_EDITOR_SAMPLE_SELECT);
-   ck_assert_msg(sounds != NULL, "cannot create sound editor window in 
SOUND_EDITOR_SAMPLE_SELECT mode");
-
-   evas_object_del(sounds);
-   app_shutdown();
-   teardown("./sound_editor_window_add_test_p2");
-   elm_shutdown();
-}
-END_TEST
-
-/**
- * @addtogroup sound_editor_window_add
- * @{
- * <tr>
- * <td>sound_editor_window_add</td>
- * <td>sound_editor_window_add_test_p3</td>
- * <td>
- * @precondition
- * @step 1 init elemantary
- * @step 2 init app
- * @step 3 create main window
- * @step 4 load project
- *
- * @procedure
- * @step 1 call sound_editor_window_add
- * @step 2 check returned value
- *
- * </td>
- * <td>(Project *) project, SOUND_EDITOR_TONE_SELECT</td>
- * <td>Not NULL Pointer returned</td>
- * </tr>
- * @}
- */
-EFLETE_TEST (sound_editor_window_add_test_p3)
-{
-   elm_init(0,0);
-
-   app_init();
-   Evas_Object *sounds;
-
-   ap.project = setup("sound_editor_window_add_test_p3");
-   ui_main_window_add();
-
-   sounds = sound_editor_window_add(SOUND_EDITOR_TONE_SELECT);
-   ck_assert_msg(sounds != NULL, "cannot create sound editor window in 
SOUND_EDITOR_TONE_SELECT mode");
-
-   evas_object_del(sounds);
-   app_shutdown();
-   teardown("./sound_editor_window_add_test_p3");
+   teardown("./sound_editor_window_add_test_p");
    elm_shutdown();
 }
 END_TEST
diff --git a/tests/test_sound_editor/test_sound_editor.c 
b/tests/test_sound_editor/test_sound_editor.c
index 988d976..55d6bcd 100644
--- a/tests/test_sound_editor/test_sound_editor.c
+++ b/tests/test_sound_editor/test_sound_editor.c
@@ -22,12 +22,7 @@
 Suite* test_suite (void) {
    Suite *suite = suite_create("test_sound_editor");
    TCase *tcase = tcase_create("TCase");
-   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_file_choose_test_p);
-   tcase_add_test(tcase, sound_editor_file_choose_test_n3);
-   tcase_add_test(tcase, sound_editor_added_sounds_free_test_n);
+   tcase_add_test(tcase, sound_editor_window_add_test_p);
    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 ec79388..6b04385 100644
--- a/tests/test_sound_editor/test_sound_editor.h
+++ b/tests/test_sound_editor/test_sound_editor.h
@@ -27,10 +27,4 @@
 
 #define TEST_NAME "sound_editor"
 
-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_added_sounds_free_test_n(int);
-
-void sound_editor_file_choose_test_p(int);
-void sound_editor_file_choose_test_n3(int);
+void sound_editor_window_add_test_p(int);

-- 


Reply via email to