rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=0edee8a3bcb6e439481c4e42fc7ad4f376d1ad0c
commit 0edee8a3bcb6e439481c4e42fc7ad4f376d1ad0c Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Wed Feb 3 14:32:22 2016 +0200 delete tests for the edc top level block managers This tests not actual. The tests are check only returned pointer. Change-Id: I39711aabb7a21275fa4a6840695748935532f56d --- tests/Makefile.am | 21 ------ .../colorclass_manager_add.c | 88 ---------------------- .../test_colorclass_manager.c | 41 ---------- .../test_colorclass_manager.h | 25 ------ tests/test_image_manager/image_manager_add.c | 82 -------------------- tests/test_image_manager/test_image_manager.c | 39 ---------- tests/test_image_manager/test_image_manager.h | 29 ------- tests/test_style_manager/style_manager_add.c | 77 ------------------- tests/test_style_manager/test_style_manager.c | 39 ---------- tests/test_style_manager/test_style_manager.h | 29 ------- 10 files changed, 470 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 0074f27..16aa6e6 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -8,18 +8,15 @@ ewe_combobox_test \ ewe_ruler_test \ eflete_test \ alloc_test \ -colorclass_manager_test \ diff_test \ change_test \ new_history_test \ -image_manager_test \ logger_test \ container_test \ modal_window_test \ project_manager_test \ config_test \ cursor_test \ -style_manager_test \ highlight_test \ ui_main_window_test \ groupedit_test \ @@ -169,18 +166,6 @@ new_history_test_SOURCES = \ new_history_test_CFLAGS = ${FLAGS} new_history_test_LDADD = ${LD} -colorclass_manager_test_SOURCES = \ -../tests/test_colorclass_manager/test_colorclass_manager.c \ -../tests/test_colorclass_manager/colorclass_manager_add.c -colorclass_manager_test_CFLAGS = ${FLAGS} -colorclass_manager_test_LDADD = ${LD} - -image_manager_test_SOURCES = \ -../tests/test_image_manager/test_image_manager.c \ -../tests/test_image_manager/image_manager_add.c -image_manager_test_CFLAGS = ${FLAGS} -image_manager_test_LDADD = ${LD} - logger_test_SOURCES = \ ../tests/test_logger/test_logger.c \ ../tests/test_logger/logger_init.c \ @@ -236,12 +221,6 @@ cursor_test_SOURCES = \ cursor_test_CFLAGS = ${FLAGS} cursor_test_LDADD = ${LD} -style_manager_test_SOURCES = \ -../tests/test_style_manager/test_style_manager.c \ -../tests/test_style_manager/style_manager_add.c -style_manager_test_CFLAGS = ${FLAGS} -DEDC_PATH=\"${srcdir}/test_style_manager/data/\" -style_manager_test_LDADD = ${LD} - container_test_SOURCES = \ ../tests/test_container/test_container.c \ ../tests/test_container/container_add.c \ diff --git a/tests/test_colorclass_manager/colorclass_manager_add.c b/tests/test_colorclass_manager/colorclass_manager_add.c deleted file mode 100644 index 073af1b..0000000 --- a/tests/test_colorclass_manager/colorclass_manager_add.c +++ /dev/null @@ -1,88 +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_colorclass_manager.h" -#include "test_common.h" - -/** - * @addtogroup colorclass_manager_test - * @{ - * @addtogroup colorclass_manager_add - * @{ - * Color Class editor - * <TABLE> - * @} - */ - -/** - * @addtogroup colorclass_manager_add - * @{ - * <tr> - * <td>colorclass_manager_add</td> - * <td>colorclass_manager_add_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 initialize application data - * @step 3 create and open Project - * @step 4 create main window - * - * @procedure - * @step 1 call colorclass_manager_add - * @step 2 check returned pointer - * </td> - * <td>(Project *)project</td> - * <td>Evas_Object returned</td> - * </tr> - * @} - */ -EFLETE_TEST (colorclass_manager_add_test_p) -{ - elm_init(0,0); - ck_assert(false); - //Evas_Object *colorclass; - - app_init(); - ap.project = setup("colorclass_manager_add_test_p"); - -/* - ui_main_window_add(); - wm_widgets_list_objects_load(ap.project->widgets, - evas_object_evas_get(ap.win), - ap.project->mmap_file); - - colorclass = colorclass_manager_add(ap.project); - ck_assert_msg(colorclass != NULL, "Unable to create image editor window"); - - evas_object_del(colorclass);*/ - pm_project_close(ap.project); - ap.project = NULL; - app_shutdown(); - teardown("./colorclass_manager_add_test_p"); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup colorclass_manager_add - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_colorclass_manager/test_colorclass_manager.c b/tests/test_colorclass_manager/test_colorclass_manager.c deleted file mode 100644 index bd3296a..0000000 --- a/tests/test_colorclass_manager/test_colorclass_manager.c +++ /dev/null @@ -1,41 +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_colorclass_manager.h" - -Suite* test_suite (void) { - Suite *suite = suite_create("colorclass_manager_test"); - TCase *tcase = tcase_create("TCase"); - - tcase_add_test(tcase, colorclass_manager_add_test_p); - - suite_add_tcase(suite, tcase); - return suite; -} - -int main(void) { - int number_failed; - Suite *suite = test_suite(); - SRunner *runner = srunner_create(suite); - srunner_set_xml(runner, "test_colorclass_manager.xml"); - srunner_run_all(runner, CK_VERBOSE); - number_failed = srunner_ntests_failed(runner); - srunner_free(runner); - return number_failed; -} diff --git a/tests/test_colorclass_manager/test_colorclass_manager.h b/tests/test_colorclass_manager/test_colorclass_manager.h deleted file mode 100644 index 913456c..0000000 --- a/tests/test_colorclass_manager/test_colorclass_manager.h +++ /dev/null @@ -1,25 +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 "main_window.h" -#include "utc_common.h" - -#define TEST_NAME "colorclass_manager" - -void colorclass_manager_add_test_p(int); diff --git a/tests/test_image_manager/image_manager_add.c b/tests/test_image_manager/image_manager_add.c deleted file mode 100644 index 34ff63d..0000000 --- a/tests/test_image_manager/image_manager_add.c +++ /dev/null @@ -1,82 +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_image_manager.h" -#include "test_common.h" - -/** - * @addtogroup image_manager_test - * @{ - * @addtogroup image_manager_add - * @{ - * image manager - * <TABLE> - * @} - */ - -/** - * @addtogroup image_manager_add - * @{ - * <tr> - * <td>image_manager_add</td> - * <td>image_manager_add_test_p</td> - * <td> - * @precondition - * @step 1 init elemantary - * @step 2 init app - * @step 3 create main window - * @step 4 load project - * - * @procedure - * @step 1 call image_manager_add - * @step 2 check returned value - * - * </td> - * <td>Nothing</td> - * <td>Not NULL Pointer returned</td> - * </tr> - * @} - */ -EFLETE_TEST (image_manager_add_test_p) -{ - elm_init(0,0); - - app_init(); - Evas_Object *images; - ui_main_window_add(); - ap.project = setup("image_manager_add_test_p"); - - images = image_manager_add(); - ck_assert_msg(images != NULL, - "cannot create image editor window in SINGLE mode"); - - evas_object_del(images); - app_shutdown(); - teardown("image_manager_add_test_p"); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup image_manager_add - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_image_manager/test_image_manager.c b/tests/test_image_manager/test_image_manager.c deleted file mode 100644 index e396165..0000000 --- a/tests/test_image_manager/test_image_manager.c +++ /dev/null @@ -1,39 +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_image_manager.h" - -Suite* test_suite (void) { - Suite *suite = suite_create("test_image_manager"); - TCase *tcase = tcase_create("TCase"); - tcase_add_test(tcase, image_manager_add_test_p); - suite_add_tcase(suite, tcase); - return suite; -} - -int main(void) { - int number_failed; - Suite *suite = test_suite(); - SRunner *runner = srunner_create(suite); - srunner_set_xml(runner, "test_image_manager.xml"); - srunner_run_all(runner, CK_VERBOSE); - number_failed = srunner_ntests_failed(runner); - srunner_free(runner); - return number_failed; -} diff --git a/tests/test_image_manager/test_image_manager.h b/tests/test_image_manager/test_image_manager.h deleted file mode 100644 index 96022c1..0000000 --- a/tests/test_image_manager/test_image_manager.h +++ /dev/null @@ -1,29 +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 "utc_common.h" -#include "main_window.h" - -/** - * @defgroup image_manager_test - */ - -#define TEST_NAME "image_manager" - -void image_manager_add_test_p(int); diff --git a/tests/test_style_manager/style_manager_add.c b/tests/test_style_manager/style_manager_add.c deleted file mode 100644 index 4b128c3..0000000 --- a/tests/test_style_manager/style_manager_add.c +++ /dev/null @@ -1,77 +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_style_manager.h" -#include "test_common.h" - -/** - * @addtogroup style_manager_test - * @{ - * @addtogroup style_manager_add - * @{ - * style_manager - * <TABLE> - * @} - */ - -/** - * @addtogroup style_manager_add - * @{ - * <tr> - * <td>style_manager_add</td> - * <td>style_manager_add_test_p</td> - * <td> - * @precondition - * @step 1 initialized elm and app - * @step 2 main window created - * @step 3 project opened - * - * @procedure - * @step 1 Call style_manager_add() - * @step 2 Check returned pointer - * </td> - * <td>Project *project</td> - * <td>returned pointer is not NULL</td> - * </tr> - * @} - */ -EFLETE_TEST(style_manager_add_test_p) -{ - elm_init(0,0); - - app_init(); - ap.project = setup("style_manager_add_test_p"); - - ui_main_window_add(); - ck_assert_msg(style_manager_add(ap.project) != NULL, - "Unable to create style editor"); - - elm_shutdown(); - teardown("./style_manager_add_test_p"); - app_shutdown(); -} -END_TEST - -/** - * @addtogroup style_manager_add - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_style_manager/test_style_manager.c b/tests/test_style_manager/test_style_manager.c deleted file mode 100644 index 1eff7b0..0000000 --- a/tests/test_style_manager/test_style_manager.c +++ /dev/null @@ -1,39 +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_style_manager.h" - -Suite* test_suite (void) { - Suite *suite = suite_create("test_style_manager"); - TCase *tcase = tcase_create("TCase"); - tcase_add_test(tcase, style_manager_add_test_p); - suite_add_tcase(suite, tcase); - return suite; -} - -int main(void) { - int number_failed; - Suite *suite = test_suite(); - SRunner *runner = srunner_create(suite); - srunner_set_xml(runner, "test_style_manager.xml"); - srunner_run_all(runner, CK_VERBOSE); - number_failed = srunner_ntests_failed(runner); - srunner_free(runner); - return number_failed; -} diff --git a/tests/test_style_manager/test_style_manager.h b/tests/test_style_manager/test_style_manager.h deleted file mode 100644 index 34e20e8..0000000 --- a/tests/test_style_manager/test_style_manager.h +++ /dev/null @@ -1,29 +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 "utc_common.h" -#include "main_window.h" - -/** - * @defgroup style_manager_test - */ - -#define TEST_NAME "style_manager" - -void style_manager_add_test_p(int); --