rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=3336964d17ddb37c83a049b99cda3715477b5262
commit 3336964d17ddb37c83a049b99cda3715477b5262 Author: Andrii Kroitor <[email protected]> Date: Thu Sep 22 11:47:33 2016 +0300 UTC: remove ghost of test_live_widget --- tests/Makefile.am | 7 -- tests/test_live_widget/live_widget_create.c | 118 ---------------------------- tests/test_live_widget/live_widget_del.c | 78 ------------------ tests/test_live_widget/test_live_widget.c | 45 ----------- tests/test_live_widget/test_live_widget.h | 30 ------- 5 files changed, 278 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 62a411b..85b3ac5 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -173,13 +173,6 @@ cursor_test_SOURCES = \ cursor_test_CFLAGS = ${FLAGS} cursor_test_LDADD = ${LD} -live_widget_test_SOURCES = \ -../tests/test_live_widget/test_live_widget.c \ -../tests/test_live_widget/live_widget_create.c \ -../tests/test_live_widget/live_widget_del.c -live_widget_test_CFLAGS = ${FLAGS} -live_widget_test_LDADD = ${LD} - coverage: echo "<html><body>" > ../coverage.html lcov --zerocounters --directory ../src diff --git a/tests/test_live_widget/live_widget_create.c b/tests/test_live_widget/live_widget_create.c deleted file mode 100644 index 94ae2de..0000000 --- a/tests/test_live_widget/live_widget_create.c +++ /dev/null @@ -1,118 +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_live_widget.h" - -/** - * @addtogroup live_widget_test - * @{ - * @addtogroup live_widget_create - * @{ - * live_widget - * <TABLE> - * @} - */ - -/** - * @addtogroup live_widget_create - * @{ - * <tr> - * <td>live_widget_create</td> - * <td>live_widget_create_test_p</td> - * <td> - * @precondition - * @step 1 Initialize elementary library. - * @step 2 Create style object as Style. - * @step 3 Create parent window. - * - * @procedure - * @step 1 Call live_widget_create. - * @step 2 Check returned pointer. - * </td> - * <td>(const char *)widget = "radio", (Style *) style, Evas_Object *parent</td> - * <td>Not NULL pointer returned</td> - * </tr> - * @} - */ -EFLETE_TEST(live_widget_create_test_p) -{ -ck_assert(false); - elm_init(0, 0); - -// Style *style = NULL; - Evas_Object *parent = NULL; - Evas_Object *live = NULL; - -// style = wm_style_add("def", "elm/radio/base/def", STYLE, NULL); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); -// live = live_widget_create("radio", style, parent); - ck_assert_msg(live != NULL, "Failed to create live object."); - -// wm_style_free(style); - evas_object_del(parent); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup live_widget_create - * @{ - * <tr> - * <td>live_widget_create</td> - * <td>live_widget_create_test_n1</td> - * <td> - * @precondition - * @step 1 Initialize elementary library. - * @step 2 Create style object as Style with unexisted name. - * @step 3 Create parent window. - * - * @procedure - * @step 1 Call live_widget_create (call for unexisted widget). - * @step 2 Check returned pointer. - * </td> - * <td>(const char *)widget = "fhtagn", (Style *) style, Evas_Object *parent</td> - * <td>NULL pointer returned</td> - * </tr> - * @} - */ -EFLETE_TEST(live_widget_create_test_n1) -{ - elm_init(0, 0); - - Evas_Object *parent = NULL; - Evas_Object *live = NULL; -// Style *style = NULL; - -// style = wm_style_add("game_with_you", "lets_play/game_with_you", STYLE, NULL); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); -// live = live_widget_create("fhtagn", style, parent); - ck_assert_msg(live == NULL, "Something was created o.o"); - - evas_object_del(parent); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup live_widget_create - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_live_widget/live_widget_del.c b/tests/test_live_widget/live_widget_del.c deleted file mode 100644 index 1d535e4..0000000 --- a/tests/test_live_widget/live_widget_del.c +++ /dev/null @@ -1,78 +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_live_widget.h" - -/** - * @addtogroup live_widget_test - * @{ - * @addtogroup live_widget_del - * @{ - * live_widget - * <TABLE> - * @} - */ - -/** - * @addtogroup live_widget_del - * @{ - * <tr> - * <td>live_widget_del</td> - * <td>live_widget_del_test_p</td> - * <td> - * @precondition - * @step 1 Initialize elementary library. - * @step 2 Create style object as Style. - * @step 3 Create parent window. - * @step 4 Create radio live_object. - * - * @procedure - * @step 1 Call live_widget_del. - * @step 2 Check returned pointer. - * </td> - * <td>Evas_Object *live_object</td> - * <td>EINA_TRUE returned</td> - * </tr> - * @} - */ -EFLETE_TEST(live_widget_del_test_p) -{ - elm_init(0, 0); - -// Style *style = NULL; - Evas_Object *parent = NULL; - Evas_Object *live = NULL; - -// style = wm_style_add("def", "elm/radio/base/def", STYLE, NULL); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); -// live = live_widget_create("radio", style, parent); - ck_assert_msg(live_widget_del(live), "it is not able to delete live object, something is wrong."); - - evas_object_del(parent); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup live_widget_del - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_live_widget/test_live_widget.c b/tests/test_live_widget/test_live_widget.c deleted file mode 100644 index 868805c..0000000 --- a/tests/test_live_widget/test_live_widget.c +++ /dev/null @@ -1,45 +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_live_widget.h" - -Suite* test_suite (void) { - Suite *suite = suite_create("live_widget_test"); - TCase *tcase = tcase_create("TCase"); - - tcase_add_test(tcase, live_widget_create_test_p); - tcase_add_test(tcase, live_widget_create_test_n1); - - tcase_add_test(tcase, live_widget_del_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_live_widget.xml"); - srunner_run_all(runner, CK_VERBOSE); - number_failed = srunner_ntests_failed(runner); - srunner_free(runner); - return number_failed; -} diff --git a/tests/test_live_widget/test_live_widget.h b/tests/test_live_widget/test_live_widget.h deleted file mode 100644 index c3919cd..0000000 --- a/tests/test_live_widget/test_live_widget.h +++ /dev/null @@ -1,30 +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 "live_widget.h" -#include "utc_common.h" - -/** - * @defgroup test_live_widget - */ - -void live_widget_create_test_p(int); -void live_widget_create_test_n1(int); - -void live_widget_del_test_p(int); --
