rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=28ed83902b77153c88e0e8579ec5596224822968
commit 28ed83902b77153c88e0e8579ec5596224822968 Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Fri Mar 18 13:14:58 2016 +0200 UTC: remove outdated tests Change-Id: I0c2af6ff550764dc8ec0b050ebd462aa987bd543 --- tests/Makefile.am | 11 +-- tests/test_colorselector/colorselector_add.c | 71 ------------------ tests/test_colorselector/colorselector_color_get.c | 84 ---------------------- tests/test_colorselector/test_colorselector.c | 40 ----------- tests/test_colorselector/test_colorselector.h | 29 -------- 5 files changed, 1 insertion(+), 234 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 5cfaece..0e32952 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -15,7 +15,6 @@ logger_test \ project_manager_test \ config_test \ cursor_test \ -colorselector_test \ shortcuts_test check_PROGRAMS = ${TESTS} @@ -71,8 +70,7 @@ include_HEADERS = \ ../tests/test_config/test_config.h \ ../tests/test_cursor/test_cursor.h \ ../tests/test_live_widget/test_live_widget.h \ - ../tests/test_shortcuts/test_shortcuts.h \ - ../tests/test_colorselector/test_colorselector.h + ../tests/test_shortcuts/test_shortcuts.h ewe_init_test_SOURCES = \ ../tests/test_ewe_init/test_ewe_init.c \ @@ -231,13 +229,6 @@ shortcuts_test_SOURCES = \ shortcuts_test_CFLAGS = ${FLAGS} shortcuts_test_LDADD = ${LD} -colorselector_test_SOURCES = \ -../tests/test_colorselector/test_colorselector.c \ -../tests/test_colorselector/colorselector_add.c \ -../tests/test_colorselector/colorselector_color_get.c -colorselector_test_CFLAGS = ${FLAGS} -colorselector_test_LDADD = ${LD} - coverage: echo "<html><body>" > ../coverage.html lcov --zerocounters --directory ../src diff --git a/tests/test_colorselector/colorselector_add.c b/tests/test_colorselector/colorselector_add.c deleted file mode 100644 index a299a8c..0000000 --- a/tests/test_colorselector/colorselector_add.c +++ /dev/null @@ -1,71 +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_colorselector.h" - -/** - * @addtogroup colorselector_test - * @{ - * @addtogroup colorselector_add - * @{ - * colorselector - * <TABLE> - * @} - */ - -/** - * @addtogroup colorselector_add - * @{ - * <tr> - * <td>colorselector_add</td> - * <td>colorselector_add_test_p</td> - * <td> - * @precondition - * @step 1 initialized efl and app - * @step 2 main_window created - * - * @procedure - * @step 1 Call colorselector_add() - * @step 2 Check returned pointer - * </td> - * <td>void</td> - * <td>Evas_Object pointer returned</td> - * </tr> - * @} - */ -EFLETE_TEST (colorselector_add_test_p) -{ - elm_init(0,0); - - app_init(); - ui_main_window_add(); - ck_assert_msg(colorselector_add(ap.win) != NULL, "cannot create the Colorselector"); - - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup colorselector_add - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_colorselector/colorselector_color_get.c b/tests/test_colorselector/colorselector_color_get.c deleted file mode 100644 index 033a166..0000000 --- a/tests/test_colorselector/colorselector_color_get.c +++ /dev/null @@ -1,84 +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_colorselector.h" - -/** - * @addtogroup colorselector_test - * @{ - * @addtogroup colorselector_color_get - * @{ - * colorselector - * <TABLE> - * @} - */ - -/** - * @addtogroup colorselector_color_get - * @{ - * <tr> - * <td>colorselector_color_get</td> - * <td>colorselector_color_get_test_p</td> - * <td> - * @precondition - * @step 1 initialized efl and app - * @step 2 main_window created - * @step 3 create colorselector - * - * @procedure - * @step 1 Call colorselector_color_get() - * @step 2 Check default value - * @step 3 Call colorselector_color_set() - * @step 4 Call colorselector_color_get() - * @step 5 Check returned value - * - * </td> - * <td>Evas_Object *, int *, int *, int *</td> - * <td>values set changed successfully</td> - * </tr> - * @} - */ -EFLETE_TEST (colorselector_color_get_test_p) -{ - elm_init(0,0); - int r, g, b, a; - - app_init(); - ui_main_window_add(); - Evas_Object *colsel = colorselector_add(ap.win); - - colorselector_color_get(colsel, &r, &g, &b, &a); - ck_assert_msg( (!r || !g || !b || !a ), "Wrong default value returned"); - - colorselector_color_set(colsel, 11, 22, 33, 44); - colorselector_color_get(colsel, &r, &g, &b, &a); - ck_assert_msg(((r == 11) || (g == 22) || (b == 33) || (a == 44) ), "Color is not set correctly"); - - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup colorselector_color_get - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_colorselector/test_colorselector.c b/tests/test_colorselector/test_colorselector.c deleted file mode 100644 index cb9efe0..0000000 --- a/tests/test_colorselector/test_colorselector.c +++ /dev/null @@ -1,40 +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_colorselector.h" - -Suite* test_suite (void) { - Suite *suite = suite_create("colorselector_test"); - TCase *tcase = tcase_create("TCase"); - tcase_add_test(tcase, colorselector_add_test_p); - tcase_add_test(tcase, colorselector_color_get_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_colorselector.xml"); - srunner_run_all(runner, CK_VERBOSE); - number_failed = srunner_ntests_failed(runner); - srunner_free(runner); - return number_failed; -} diff --git a/tests/test_colorselector/test_colorselector.h b/tests/test_colorselector/test_colorselector.h deleted file mode 100644 index b21f23f..0000000 --- a/tests/test_colorselector/test_colorselector.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 "colorsel.h" -#include "main_window.h" - -/** - * @defgroup colorselector_test - */ - -void colorselector_add_test_p(int); -void colorselector_color_get_test_p(int); --