rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=2bed283fd1bd0aaba03d40d39776226764450b26
commit 2bed283fd1bd0aaba03d40d39776226764450b26 Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Wed Mar 16 09:32:17 2016 +0200 UTC: delete unit tests for container and highlight This module are submodules of workspace, so they must to tested by workspace functional tests. Change-Id: I840ca9ed343c98da6f9efa63cddf56be641e049a --- tests/Makefile.am | 36 --- tests/test_container/container_add.c | 74 ------ tests/test_container/container_border_hide.c | 77 ------ tests/test_container/container_border_show.c | 77 ------ .../test_container/container_container_size_get.c | 84 ------- .../test_container/container_container_size_set.c | 169 -------------- tests/test_container/container_content_set.c | 78 ------- tests/test_container/container_content_unset.c | 118 ---------- tests/test_container/container_handler_size_get.c | 80 ------- tests/test_container/container_handler_size_set.c | 257 -------------------- tests/test_container/container_max_size_set.c | 77 ------ tests/test_container/container_min_size_set.c | 77 ------ tests/test_container/container_padding_size_get.c | 141 ----------- tests/test_container/container_padding_size_set.c | 259 --------------------- tests/test_container/container_style_get.c | 79 ------- tests/test_container/container_style_set.c | 78 ------- tests/test_container/test_container.c | 67 ------ tests/test_container/test_container.h | 53 ----- tests/test_highlight/highlight_add.c | 72 ------ .../test_highlight/highlight_handler_align_hide.c | 113 --------- .../test_highlight/highlight_handler_align_show.c | 115 --------- .../highlight_handler_align_visible_get.c | 116 --------- .../highlight_handler_disabled_set.c | 114 --------- tests/test_highlight/highlight_handler_mode_set.c | 76 ------ tests/test_highlight/highlight_object_follow.c | 160 ------------- tests/test_highlight/highlight_object_unfollow.c | 123 ---------- tests/test_highlight/test_highlight.c | 59 ----- tests/test_highlight/test_highlight.h | 48 ---- 28 files changed, 2877 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index e8d3507..4adb226 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -12,12 +12,10 @@ diff_test \ change_test \ new_history_test \ logger_test \ -container_test \ modal_window_test \ project_manager_test \ config_test \ cursor_test \ -highlight_test \ ui_main_window_test \ ui_workspace_test \ about_window_test \ @@ -40,7 +38,6 @@ FLAGS = \ -I${top_srcdir}/src/bin/config \ -I${top_srcdir}/src/bin/history \ -I${top_srcdir}/src/bin/ui \ --I${top_srcdir}/src/bin/ui/container \ -I${top_srcdir}/src/bin/ui/blocks \ -I${top_srcdir}/src/bin/ui/dialogs \ -I${top_srcdir}/src/bin/ui/editors \ @@ -217,39 +214,6 @@ cursor_test_SOURCES = \ cursor_test_CFLAGS = ${FLAGS} cursor_test_LDADD = ${LD} -container_test_SOURCES = \ -../tests/test_container/test_container.c \ -../tests/test_container/container_add.c \ -../tests/test_container/container_container_size_set.c \ -../tests/test_container/container_container_size_get.c \ -../tests/test_container/container_min_size_set.c \ -../tests/test_container/container_max_size_set.c \ -../tests/test_container/container_handler_size_set.c \ -../tests/test_container/container_handler_size_get.c \ -../tests/test_container/container_style_get.c \ -../tests/test_container/container_style_set.c \ -../tests/test_container/container_border_hide.c \ -../tests/test_container/container_border_show.c \ -../tests/test_container/container_padding_size_set.c \ -../tests/test_container/container_padding_size_get.c \ -../tests/test_container/container_content_set.c \ -../tests/test_container/container_content_unset.c -container_test_CFLAGS = ${FLAGS} -container_test_LDADD = ${LD} - -highlight_test_SOURCES = \ -../tests/test_highlight/test_highlight.c \ -../tests/test_highlight/highlight_add.c \ -../tests/test_highlight/highlight_handler_disabled_set.c \ -../tests/test_highlight/highlight_handler_align_hide.c \ -../tests/test_highlight/highlight_handler_align_show.c \ -../tests/test_highlight/highlight_handler_align_visible_get.c \ -../tests/test_highlight/highlight_handler_mode_set.c \ -../tests/test_highlight/highlight_object_follow.c \ -../tests/test_highlight/highlight_object_unfollow.c -highlight_test_CFLAGS = ${FLAGS} -highlight_test_LDADD = ${LD} - ui_main_window_test_SOURCES = \ ../tests/test_ui_main_window/test_ui_main_window.c \ ../tests/test_ui_main_window/ui_main_window_add.c \ diff --git a/tests/test_container/container_add.c b/tests/test_container/container_add.c deleted file mode 100644 index 55afb57..0000000 --- a/tests/test_container/container_add.c +++ /dev/null @@ -1,74 +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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_add - * @{ - * Groupedit - * <TABLE> - * @} - */ - -/** - * @addtogroup container_add - * @{ - * <tr> - * <td>container_add</td> - * <td>container_add_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * - * @procedure - * @step 1 call container_add - * @step 2 check returned pointer - * </td> - * <td>(Evas_Object *) window</td> - * <td>Returned pointer not NULL</td> - * </tr> - * @} - */ -EFLETE_TEST (container_add_test_p) -{ - Evas_Object *parent, *container; - - elm_init(0, 0); - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - ck_assert_msg(container != NULL, "Failed create container object."); - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_add - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_border_hide.c b/tests/test_container/container_border_hide.c deleted file mode 100644 index d29c490..0000000 --- a/tests/test_container/container_border_hide.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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_border_hide - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_border_hide - * @{ - * <tr> - * <td>container_border_hide</td> - * <td>container_border_hide_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 hide layout of the container. - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) container</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(container_border_hide_test_p) -{ - Evas_Object *parent, *container; - - elm_init(0, 0); - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - container = container_add(parent); - ck_assert_msg(container_border_hide(container) == EINA_TRUE, - "Failed to hide layout of the container."); - - evas_object_del(container); - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_border_hide - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_border_show.c b/tests/test_container/container_border_show.c deleted file mode 100644 index 677fb88..0000000 --- a/tests/test_container/container_border_show.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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_border_show - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_border_show - * @{ - * <tr> - * <td>container_border_show</td> - * <td>container_border_show_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 show layout of the container. - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) container</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(container_border_show_test_p) -{ - Evas_Object *parent, *container; - - elm_init(0, 0); - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - container = container_add(parent); - ck_assert_msg(container_border_show(container) == EINA_TRUE, - "Failed to show layout of the container."); - - evas_object_del(container); - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_border_show - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_container_size_get.c b/tests/test_container/container_container_size_get.c deleted file mode 100644 index 250e0ff..0000000 --- a/tests/test_container/container_container_size_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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_container_size_get - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_container_size_get - * @{ - * <tr> - * <td>container_container_size_get</td> - * <td>container_container_size_get_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container container - * @step 2 get the new size for container container - * @step 3 check returned value - * </td> - * <td>(Evas_Object *) container, 100, 100</td> - * <td>EINA_TRUE, 100, 100</td> - * </tr> - * @} - */ -EFLETE_TEST(container_container_size_get_test_p) -{ - Evas_Object *parent, *container; - int w, h; - Eina_Bool res; - - elm_init(0, 0); - w = h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - res = container_container_size_set(container, 100, 100); - if (res) - container_container_size_get(container, &w, &h); - ck_assert_msg(((w == 100) && (h == 100)), - "Failed to get the container containers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_container_size_get - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_container_size_set.c b/tests/test_container/container_container_size_set.c deleted file mode 100644 index 7096835..0000000 --- a/tests/test_container/container_container_size_set.c +++ /dev/null @@ -1,169 +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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_container_size_set - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_container_size_set - * @{ - * <tr> - * <td>container_container_size_set</td> - * <td>container_container_size_set_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container container - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) container, 100, 100</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(container_container_size_set_test_p1) -{ - Evas_Object *parent, *container; - - elm_init(0, 0); - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - ck_assert_msg(container_container_size_set(container, 100, 100), - "Failed to set the container container size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_container_size_set - * @{ - * <tr> - * <td>container_container_size_set</td> - * <td>container_container_size_set_test_p2</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container container - * @step 2 check returned value - * </td> - * <td>(Evas_Object *)container, 0, 100</td> - * <td>EINA_TRUE (0, 100)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_container_size_set_test_p2) -{ - Evas_Object *parent, *container; - int w, h; - Eina_Bool res; - - elm_init(0, 0); - w = h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - container_min_size_set(container, 50, 200); - res = container_container_size_set(container, 0, 300); - if (res) - container_container_size_get(container, &w, &h); - ck_assert_msg((w == 50) && (h == 300), - "Failed to set the container containers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_container_size_set - * @{ - * <tr> - * <td>container_container_size_set</td> - * <td>container_container_size_set_test_p3</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container container - * @step 2 check returned value - * </td> - * <td>(Evas_Object *)container, 100, 0</td> - * <td>EINA_TRUE (100, 0)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_container_size_set_test_p3) -{ - Evas_Object *parent, *container; - int w, h; - Eina_Bool res; - - elm_init(0, 0); - w = h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - container_min_size_set(container, 200, 50); - res = container_container_size_set(container, 300, 0); - if (res) - container_container_size_get(container, &w, &h); - ck_assert_msg((w == 300) && (h == 50), - "Failed to set the container containers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_container_size_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_content_set.c b/tests/test_container/container_content_set.c deleted file mode 100644 index 4cb99a8..0000000 --- a/tests/test_container/container_content_set.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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_content_set - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_content_set - * @{ - * <tr> - * <td>container_content_set</td> - * <td>container_content_set_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * @step 4 create a content, elm_button - * - * @procedure - * @step 1 set to the container the elm_buttom object - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) container, (Evas_Object) *content</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(container_content_set_test_p) -{ - Evas_Object *parent, *container, *content; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - container = container_add(parent); - content = elm_button_add(container); - - ck_assert_msg(container_content_set(container, content), - "The content object not setted to the container."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_content_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_content_unset.c b/tests/test_container/container_content_unset.c deleted file mode 100644 index 6d5c9b4..0000000 --- a/tests/test_container/container_content_unset.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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_content_unset - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_content_unset - * @{ - * <tr> - * <td>container_content_unset</td> - * <td>container_content_unset_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * @step 4 create a content, elm_button - * @step 5 set the content object to the container - * - * @procedure - * @step 1 try to unset content object from the container - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) container</td> - * <td>Not NULL pointer</td> - * </tr> - * @} - */ -EFLETE_TEST(container_content_unset_test_p) -{ - Evas_Object *parent, *container, *content; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - container = container_add(parent); - content = elm_button_add(container); - container_content_set(container, content); - - ck_assert_msg(container_content_unset(container) != NULL, - "Can't unset the content object from the container."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_content_unset - * @{ - * <tr> - * <td>container_content_unset</td> - * <td>container_content_unset_test_n1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 try to unset the content object from the container - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) container</td> - * <td>NULL</td> - * </tr> - * @} - */ -EFLETE_TEST(container_content_unset_test_n1) -{ - Evas_Object *parent, *container; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - container = container_add(parent); - - ck_assert_msg(container_content_unset(container) == NULL, - "Unset the content object from the container without content."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_content_unset - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_handler_size_get.c b/tests/test_container/container_handler_size_get.c deleted file mode 100644 index 3a7c6d1..0000000 --- a/tests/test_container/container_handler_size_get.c +++ /dev/null @@ -1,80 +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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_handler_size_get - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_handler_size_get - * @{ - * <tr> - * <td>container_handler_size_get</td> - * <td>container_handler_size_get_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 get the new size for container handlers - * @step 2 check size of container handlers - * </td> - * <td>(Evas_Object *) container</td> - * <td>5, 5, 5, 5</td> - * </tr> - * @} - */ -EFLETE_TEST(container_handler_size_get_test_p) -{ - Evas_Object *parent, *container; - int lt_w, lt_h, br_w, br_h; - - elm_init(0, 0); - lt_w = lt_h = br_w = br_h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - container_handler_size_get(container, <_w, <_h, &br_w, &br_h); - ck_assert_msg(((lt_w == 5) || (lt_h == 5) || (br_w == 5) || (br_h == 5)), - "Failed to set the container handlers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_handler_size_get - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_handler_size_set.c b/tests/test_container/container_handler_size_set.c deleted file mode 100644 index 3bae385..0000000 --- a/tests/test_container/container_handler_size_set.c +++ /dev/null @@ -1,257 +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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_handler_size_set - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_handler_size_set - * @{ - * <tr> - * <td>container_handler_size_set</td> - * <td>container_handler_size_set_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container handlers - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) container, 9, 9, 9, 9</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(container_handler_size_set_test_p) -{ - Evas_Object *parent, *container; - - elm_init(0, 0); - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - ck_assert_msg(container_handler_size_set(container, 9, 9, 9, 9), - "Failed to set the container handlers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_handler_size_set - * @{ - * <tr> - * <td>container_handler_size_set</td> - * <td>container_handler_size_set_test_n2</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container handlers - * @step 2 check returned value - * </td> - * <td>(Evas_Object *)container, 0, 9, 9, 9</td> - * <td>EINA_TRUE (5, 9, 9, 9)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_handler_size_set_test_n2) -{ - Evas_Object *parent, *container; - int lt_w, lt_h, br_w, br_h; - Eina_Bool res; - - elm_init(0, 0); - lt_w = lt_h = br_w = br_h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - res = container_handler_size_set(container, 0, 9, 9, 9); - if (res) - container_handler_size_get(container, <_w, <_h, &br_w, &br_h); - ck_assert_msg(((!res) || (lt_w == 5) || (lt_h == 9) || (br_w == 9) || (br_h == 9)), - "Failed to set the container handlers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_handler_size_set - * @{ - * <tr> - * <td>container_handler_size_set</td> - * <td>container_handler_size_set_test_n3</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container handlers - * @step 2 check returned value - * </td> - * <td>(Evas_Object *)container, 9, 0, 9, 9</td> - * <td>EINA_TRUE (9, 5, 9, 9)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_handler_size_set_test_n3) -{ - Evas_Object *parent, *container; - int lt_w, lt_h, br_w, br_h; - Eina_Bool res; - - elm_init(0, 0); - lt_w = lt_h = br_w = br_h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - res = container_handler_size_set(container, 9, 0, 9, 9); - if (res) - container_handler_size_get(container, <_w, <_h, &br_w, &br_h); - ck_assert_msg(((!res) || (lt_w == 9) || (lt_h == 5) || (br_w == 9) || (br_h == 9)), - "Failed to set the container handlers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_handler_size_set - * @{ - * <tr> - * <td>container_handler_size_set</td> - * <td>container_handler_size_set_test_n4</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container handlers - * @step 2 check return value - * </td> - * <td>(Evas_Object *)container, 9, 9, 0, 9</td> - * <td>EINA_TRUE (9, 9, 5, 9)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_handler_size_set_test_n4) -{ - Evas_Object *parent, *container; - int lt_w, lt_h, br_w, br_h; - Eina_Bool res; - - elm_init(0, 0); - lt_w = lt_h = br_w = br_h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - res = container_handler_size_set(container, 9, 9, 0, 9); - if (res) - container_handler_size_get(container, <_w, <_h, &br_w, &br_h); - ck_assert_msg(((!res) || (lt_w == 9) || (lt_h == 9) || (br_w == 5) || (br_h == 9)), - "Failed to set the container handlers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_handler_size_set - * @{ - * <tr> - * <td>container_handler_size_set</td> - * <td>container_handler_size_set_test_n5</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container handlers - * @step 2 check returned value - * </td> - * <td>(Evas_Object *)container, 9, 9, 9, 0</td> - * <td>EINA_TRUE (9, 9, 9, 5)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_handler_size_set_test_n5) -{ - Evas_Object *parent, *container; - int lt_w, lt_h, br_w, br_h; - Eina_Bool res; - - elm_init(0, 0); - lt_w = lt_h = br_w = br_h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - res = container_handler_size_set(container, 9, 9, 9, 0); - if (res) - container_handler_size_get(container, <_w, <_h, &br_w, &br_h); - ck_assert_msg(((!res) || (lt_w == 9) || (lt_h == 9) || (br_w == 9) || (br_h == 5)), - "Failed to set the container handlers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_handler_size_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_max_size_set.c b/tests/test_container/container_max_size_set.c deleted file mode 100644 index d5467cb..0000000 --- a/tests/test_container/container_max_size_set.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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_max_size_set - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_max_size_set - * @{ - * <tr> - * <td>container_max_size_set</td> - * <td>container_max_size_set_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set max size to container of the container - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) container, 100, 100</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(container_max_size_set_test_p) -{ - Evas_Object *parent, *container; - - elm_init(0, 0); - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - ck_assert_msg(container_max_size_set(container, 100, 100), - "Failed to set maximun size to container of the container."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_max_size_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_min_size_set.c b/tests/test_container/container_min_size_set.c deleted file mode 100644 index 2361e87..0000000 --- a/tests/test_container/container_min_size_set.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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_min_size_set - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_min_size_set - * @{ - * <tr> - * <td>container_min_size_set</td> - * <td>container_min_size_set_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set min size to container of the container - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) container, 100, 100</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(container_min_size_set_test_p) -{ - Evas_Object *parent, *container; - - elm_init(0, 0); - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - ck_assert_msg(container_min_size_set(container, 100, 100), - "Failed to set minimun size to container of the container."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_min_size_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_padding_size_get.c b/tests/test_container/container_padding_size_get.c deleted file mode 100644 index 4bbfb3c..0000000 --- a/tests/test_container/container_padding_size_get.c +++ /dev/null @@ -1,141 +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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_padding_size_get - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_padding_size_get - * @{ - * <tr> - * <td>container_padding_size_get</td> - * <td>container_padding_size_get_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container paddings - * @step 2 get the new size of container paddings - * @step 3 check size of container paddings - * </td> - * <td>(Evas_Object *) container</td> - * <td>EINA_TRUE, (5, 6, 7, 8)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_padding_size_get_test_p1) -{ - Evas_Object *parent, *container; - int lt_w, lt_h, br_w, br_h; - - elm_init(0, 0); - lt_w = lt_h = br_w = br_h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - container_padding_size_set(container, 5, 6, 7, 8); - - ck_assert_msg(container_padding_size_get(container, <_w, <_h, &br_w, &br_h), - "Failed to get the container paddings size."); - - ck_assert_msg(((lt_w == 5) || (lt_h == 6) || (br_w == 7) || (br_h == 8)), - "Returned container paddings sizes are wrong."); - - evas_object_del(container); - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_padding_size_get - * @{ - * <tr> - * <td>container_padding_size_get</td> - * <td>container_padding_size_get_test_p2</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container paddings - * @step 2 get the new size of container's top left handler - * @step 3 get the new size of container's bottom right handler - * @step 4 check size of container paddings - * </td> - * <td>(Evas_Object *) container</td> - * <td>EINA_TRUE, (25, 26, 27, 28)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_padding_size_get_test_p2) -{ - Evas_Object *parent, *container; - int lt_w, lt_h, br_w, br_h; - - elm_init(0, 0); - lt_w = lt_h = br_w = br_h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - container_padding_size_set(container, 25, 26, 27, 28); - - ck_assert_msg(container_padding_size_get(container, <_w, <_h, NULL, NULL), - "Failed to get the container paddings size."); - - ck_assert_msg(((lt_w == 25) || (lt_h == 26) || (br_w == 0) || (br_h == 0)), - "Returned container TL handler's size is wrong."); - - ck_assert_msg(container_padding_size_get(container, NULL, NULL, &br_w, &br_h), - "Failed to get the container paddings size."); - - ck_assert_msg(((lt_w == 25) || (lt_h == 26) || (br_w == 27) || (br_h == 28)), - "Returned container BR handler's size is wrong."); - - evas_object_del(container); - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_padding_size_get - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_padding_size_set.c b/tests/test_container/container_padding_size_set.c deleted file mode 100644 index 24529e9..0000000 --- a/tests/test_container/container_padding_size_set.c +++ /dev/null @@ -1,259 +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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_padding_size_set - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_padding_size_set - * @{ - * <tr> - * <td>container_padding_size_set</td> - * <td>container_padding_size_set_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container paddings - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) container, 9, 9, 9, 9</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(container_padding_size_set_test_p) -{ - Evas_Object *parent, *container; - - elm_init(0, 0); - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - ck_assert_msg(container_padding_size_set(container, 9, 9, 9, 9), - "Failed to set the container handlers size."); - - evas_object_del(container); - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_padding_size_set - * @{ - * <tr> - * <td>container_padding_size_set</td> - * <td>container_padding_size_set_test_n3</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container handlers - * @step 2 check returned value - * </td> - * <td>(Evas_Object *)container, -79, 9, 9, 9</td> - * <td>EINA_TRUE (0, 9, 9, 9)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_padding_size_set_test_n3) -{ - Evas_Object *parent, *container; - int lt_w, lt_h, br_w, br_h; - Eina_Bool res; - - elm_init(0, 0); - lt_w = lt_h = br_w = br_h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - res = container_padding_size_set(container, -79, 9, 9, 9); - if (res) - container_padding_size_get(container, <_w, <_h, &br_w, &br_h); - ck_assert_msg(((!res) || (lt_w == 0) || (lt_h == 9) || (br_w == 9) || (br_h == 9)), - "Failed to set the container handlers size."); - - evas_object_del(container); - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_padding_size_set - * @{ - * <tr> - * <td>container_padding_size_set</td> - * <td>container_padding_size_set_test_n4</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container handlers - * @step 2 check returned value - * </td> - * <td>(Evas_Object *)container, 9, -16, 9, 9</td> - * <td>EINA_TRUE (9, 0, 9, 9)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_padding_size_set_test_n4) -{ - Evas_Object *parent, *container; - int lt_w, lt_h, br_w, br_h; - Eina_Bool res; - - elm_init(0, 0); - lt_w = lt_h = br_w = br_h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - res = container_padding_size_set(container, 9, -16, 9, 9); - if (res) - container_padding_size_get(container, <_w, <_h, &br_w, &br_h); - ck_assert_msg(((!res) || (lt_w == 9) || (lt_h == 0) || (br_w == 9) || (br_h == 9)), - "Failed to set the container handlers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_padding_size_set - * @{ - * <tr> - * <td>container_padding_size_set</td> - * <td>container_padding_size_set_test_n5</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container handlers - * @step 2 check return value - * </td> - * <td>(Evas_Object *)container, 9, 9, -333, 9</td> - * <td>EINA_TRUE (9, 9, 0, 9)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_padding_size_set_test_n5) -{ - Evas_Object *parent, *container; - int lt_w, lt_h, br_w, br_h; - Eina_Bool res; - - elm_init(0, 0); - lt_w = lt_h = br_w = br_h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - res = container_padding_size_set(container, 9, 9, -333, 9); - if (res) - container_padding_size_get(container, <_w, <_h, &br_w, &br_h); - ck_assert_msg(((!res) || (lt_w == 9) || (lt_h == 9) || (br_w == 0) || (br_h == 9)), - "Failed to set the container handlers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_padding_size_set - * @{ - * <tr> - * <td>container_padding_size_set</td> - * <td>container_padding_size_set_test_n6</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new size for container handlers - * @step 2 check returned value - * </td> - * <td>(Evas_Object *)container, 9, 9, 9, -1</td> - * <td>EINA_TRUE (9, 9, 9, 0)</td> - * </tr> - * @} - */ -EFLETE_TEST(container_padding_size_set_test_n6) -{ - Evas_Object *parent, *container; - int lt_w, lt_h, br_w, br_h; - Eina_Bool res; - - elm_init(0, 0); - lt_w = lt_h = br_w = br_h = 0; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - res = container_padding_size_set(container, 9, 9, 9, -1); - if (res) - container_padding_size_get(container, <_w, <_h, &br_w, &br_h); - ck_assert_msg(((!res) || (lt_w == 9) || (lt_h == 9) || (br_w == 9) || (br_h == 0)), - "Failed to set the container handlers size."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_padding_size_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_style_get.c b/tests/test_container/container_style_get.c deleted file mode 100644 index 8e6ae4e..0000000 --- a/tests/test_container/container_style_get.c +++ /dev/null @@ -1,79 +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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_style_get - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_style_get - * @{ - * <tr> - * <td>container_style_get</td> - * <td>container_style_get_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new style to container - * @step 2 get the style name from container - * @step 3 check returned value - * </td> - * <td>(Evas_Object *) container, "default"</td> - * <td>EINA_TRUE, "default"</td> - * </tr> - * @} - */ -EFLETE_TEST(container_style_get_test_p) -{ - Evas_Object *parent, *container; - - elm_init(0, 0); - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - container_style_set(container, "default"); - ck_assert_msg(strcmp(container_style_get(container), "default") == 0, - "Failed to get the container a style."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_style_get - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/container_style_set.c b/tests/test_container/container_style_set.c deleted file mode 100644 index 6e39152..0000000 --- a/tests/test_container/container_style_set.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_container.h" - -/** - * @addtogroup container_test - * @{ - * @addtogroup container_style_set - * @{ - * Container - * <TABLE> - * @} - */ - -/** - * @addtogroup container_style_set - * @{ - * <tr> - * <td>container_style_set</td> - * <td>container_style_set_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create a container - * - * @procedure - * @step 1 set the new style to container - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) container, "default"</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(container_style_set_test_p) -{ - Evas_Object *parent, *container; - - elm_init(0, 0); - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - container = container_add(parent); - container_style_set(container, "wrong_style"); - ck_assert_msg(container_style_set(container, "default"), - "Style 'default' not setted to the conteiner."); - - evas_object_del(parent); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup container_style_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_container/test_container.c b/tests/test_container/test_container.c deleted file mode 100644 index d426abc..0000000 --- a/tests/test_container/test_container.c +++ /dev/null @@ -1,67 +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_container.h" - -Suite* test_suite (void) { - Suite *suite = suite_create("test_container"); - TCase *tcase = tcase_create("TCase"); - - tcase_add_test(tcase, container_add_test_p); - tcase_add_test(tcase, container_border_hide_test_p); - tcase_add_test(tcase, container_border_show_test_p); - tcase_add_test(tcase, container_container_size_get_test_p); - tcase_add_test(tcase, container_container_size_set_test_p1); - tcase_add_test(tcase, container_container_size_set_test_p2); - tcase_add_test(tcase, container_container_size_set_test_p3); - tcase_add_test(tcase, container_content_set_test_p); - tcase_add_test(tcase, container_content_unset_test_n1); - tcase_add_test(tcase, container_content_unset_test_p); - tcase_add_test(tcase, container_handler_size_get_test_p); - tcase_add_test(tcase, container_handler_size_set_test_n2); - tcase_add_test(tcase, container_handler_size_set_test_n3); - tcase_add_test(tcase, container_handler_size_set_test_n4); - tcase_add_test(tcase, container_handler_size_set_test_n5); - tcase_add_test(tcase, container_handler_size_set_test_p); - tcase_add_test(tcase, container_max_size_set_test_p); - tcase_add_test(tcase, container_min_size_set_test_p); - tcase_add_test(tcase, container_padding_size_get_test_p1); - tcase_add_test(tcase, container_padding_size_get_test_p2); - tcase_add_test(tcase, container_padding_size_set_test_n3); - tcase_add_test(tcase, container_padding_size_set_test_n4); - tcase_add_test(tcase, container_padding_size_set_test_n5); - tcase_add_test(tcase, container_padding_size_set_test_n6); - tcase_add_test(tcase, container_padding_size_set_test_p); - tcase_add_test(tcase, container_style_get_test_p); - tcase_add_test(tcase, container_style_set_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_container.xml"); - srunner_run_all(runner, CK_VERBOSE); - number_failed = srunner_ntests_failed(runner); - srunner_free(runner); - return number_failed; -} diff --git a/tests/test_container/test_container.h b/tests/test_container/test_container.h deleted file mode 100644 index c275028..0000000 --- a/tests/test_container/test_container.h +++ /dev/null @@ -1,53 +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 "container.h" - -/** - * @defgroup test_container - */ - -void container_add_test_p(int); -void container_border_hide_test_p(int); -void container_border_show_test_p(int); -void container_container_size_get_test_p(int); -void container_container_size_set_test_p1(int); -void container_container_size_set_test_p2(int); -void container_container_size_set_test_p3(int); -void container_content_set_test_p(int); -void container_content_unset_test_n1(int); -void container_content_unset_test_p(int); -void container_handler_size_get_test_p(int); -void container_handler_size_set_test_n2(int); -void container_handler_size_set_test_n3(int); -void container_handler_size_set_test_n4(int); -void container_handler_size_set_test_n5(int); -void container_handler_size_set_test_p(int); -void container_max_size_set_test_p(int); -void container_min_size_set_test_p(int); -void container_padding_size_get_test_p1(int); -void container_padding_size_get_test_p2(int); -void container_padding_size_set_test_n3(int); -void container_padding_size_set_test_n4(int); -void container_padding_size_set_test_n5(int); -void container_padding_size_set_test_n6(int); -void container_padding_size_set_test_p(int); -void container_style_get_test_p(int); -void container_style_set_test_p(int); diff --git a/tests/test_highlight/highlight_add.c b/tests/test_highlight/highlight_add.c deleted file mode 100644 index 80e3b09..0000000 --- a/tests/test_highlight/highlight_add.c +++ /dev/null @@ -1,72 +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_highlight.h" - -/** - * @addtogroup highlight_test - * @{ - * @addtogroup highlight_add - * @{ - * highlight - * <TABLE> - * @} - */ - -/** - * @addtogroup highlight_add - * @{ - * <tr> - * <td>highlight_add</td> - * <td>highlight_add_test_p</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * - * @procedure - * @step 1 Call function highlight_add(parent). - * @step 2 Check returned value. - * </td> - * <td>Evas_Object *parent</td> - * <td>Evas_Object returned</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_add_test_p) -{ - Evas_Object *parent, *highlight; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - - highlight = highlight_add(parent); - ck_assert_msg(highlight != NULL, "Failed to create highlight object."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_add - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_highlight/highlight_handler_align_hide.c b/tests/test_highlight/highlight_handler_align_hide.c deleted file mode 100644 index db2f498..0000000 --- a/tests/test_highlight/highlight_handler_align_hide.c +++ /dev/null @@ -1,113 +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_highlight.h" - -/** - * @addtogroup highlight_test - * @{ - * @addtogroup highlight_handler_align_hide - * @{ - * highlight - * <TABLE> - * @} - */ - -/** - * @addtogroup highlight_handler_align_hide - * @{ - * <tr> - * <td>highlight_handler_align_hide</td> - * <td>highlight_handler_align_hide_test_p1</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * - * @procedure - * @step 1 Call function highlight_handler_align_show(highlight). - * @step 2 Call function highlight_handler_align_hide(highlight). - * @step 3 Check returned value. - * </td> - * <td>Evas_Object *highlight</td> - * <td>All checks passed</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_handler_align_hide_test_p1) -{ - Evas_Object *parent, *highlight; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - - highlight_handler_align_show(highlight); - ck_assert_msg(highlight_handler_align_hide(highlight), "Hiding middle handler was failed."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_handler_align_hide - * @{ - * <tr> - * <td>highlight_handler_align_hide</td> - * <td>highlight_handler_align_hide_test_p2</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * - * @procedure - * @step 1 Call function highlight_handler_align_hide(highlight). - * @step 2 Check returned value. - * @step 3 Call function highlight_handler_align_hide(highlight). - * @step 4 Check returned value. - * </td> - * <td>Evas_Object *highlight</td> - * <td>All checks passed</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_handler_align_hide_test_p2) -{ - Evas_Object *parent, *highlight; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - - ck_assert_msg(highlight_handler_align_hide(highlight), "Hiding middle handler was failed."); - ck_assert_msg(highlight_handler_align_hide(highlight), "Hiding middle handler was failed."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_handler_align_hide - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_highlight/highlight_handler_align_show.c b/tests/test_highlight/highlight_handler_align_show.c deleted file mode 100644 index 78e81a3..0000000 --- a/tests/test_highlight/highlight_handler_align_show.c +++ /dev/null @@ -1,115 +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_highlight.h" - -/** - * @addtogroup highlight_test - * @{ - * @addtogroup highlight_handler_align_show - * @{ - * highlight - * <TABLE> - * @} - */ - -/** - * @addtogroup highlight_handler_align_show - * @{ - * <tr> - * <td>highlight_handler_align_show</td> - * <td>highlight_handler_align_show_test_p1</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * - * @procedure - * @step 1 Call function highlight_handler_align_show(highlight). - * @step 1 Call function highlight_handler_align_hide(highlight). - * @step 2 Call function highlight_handler_align_show(highlight). - * @step 3 Check returned value. - * </td> - * <td>Evas_Object *highlight</td> - * <td>All checks passed</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_handler_align_show_test_p1) -{ - Evas_Object *parent, *highlight; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - - highlight_handler_align_show(highlight); - highlight_handler_align_hide(highlight); - ck_assert_msg(highlight_handler_align_show(highlight), "Showing middle handler was failed."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_handler_align_show - * @{ - * <tr> - * <td>highlight_handler_align_show</td> - * <td>highlight_handler_align_show_test_p2</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * - * @procedure - * @step 1 Call function highlight_handler_align_show(highlight). - * @step 2 Check returned value. - * @step 3 Call function highlight_handler_align_show(highlight). - * @step 4 Check returned value. - * </td> - * <td>Evas_Object *highlight</td> - * <td>All checks passed</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_handler_align_show_test_p2) -{ - Evas_Object *parent, *highlight; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - - ck_assert_msg(highlight_handler_align_show(highlight), "Showing middle handler was failed."); - ck_assert_msg(highlight_handler_align_show(highlight), "Showing middle handler was failed."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_handler_align_show - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_highlight/highlight_handler_align_visible_get.c b/tests/test_highlight/highlight_handler_align_visible_get.c deleted file mode 100644 index f0cd613..0000000 --- a/tests/test_highlight/highlight_handler_align_visible_get.c +++ /dev/null @@ -1,116 +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_highlight.h" - -/** - * @addtogroup highlight_test - * @{ - * @addtogroup highlight_handler_align_visible_get - * @{ - * highlight - * <TABLE> - * @} - */ - -/** - * @addtogroup highlight_handler_align_visible_get - * @{ - * <tr> - * <td>highlight_handler_align_visible_get</td> - * <td>highlight_handler_align_visible_get_test_p1</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * @step 4 Show highlight's align border. - * @step 5 Hide highlight's align border. - * @step 6 Show highlight's align border. - * - * @procedure - * @step 1 Call function highlight_handler_align_visible_get(highlight). - * @step 2 Check returned value. - * </td> - * <td>Evas_Object *highlight</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_handler_align_visible_get_test_p1) -{ - Evas_Object *parent, *highlight; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - - highlight_handler_align_show(highlight); - highlight_handler_align_hide(highlight); - highlight_handler_align_show(highlight); - ck_assert_msg(highlight_handler_align_visible_get(highlight), "Showing align border was failed."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_handler_align_visible_get - * @{ - * <tr> - * <td>highlight_handler_align_visible_get</td> - * <td>highlight_handler_align_visible_get_test_p2</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * @step 4 Show highlight's align border. - * - * @procedure - * @step 1 Call function highlight_handler_align_visible_get(highlight). - * @step 2 Check returned value. - * </td> - * <td>Evas_Object *highlight</td> - * <td>EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_handler_align_visible_get_test_p2) -{ - Evas_Object *parent, *highlight; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - - highlight_handler_align_show(highlight); - ck_assert_msg(highlight_handler_align_visible_get(highlight), "Showing align border was failed."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_handler_align_visible_get - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_highlight/highlight_handler_disabled_set.c b/tests/test_highlight/highlight_handler_disabled_set.c deleted file mode 100644 index 369718f..0000000 --- a/tests/test_highlight/highlight_handler_disabled_set.c +++ /dev/null @@ -1,114 +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_highlight.h" - -/** - * @addtogroup highlight_test - * @{ - * @addtogroup highlight_handler_disabled_set - * @{ - * highlight - * <TABLE> - * @} - */ - -/** - * @addtogroup highlight_handler_disabled_set - * @{ - * <tr> - * <td>highlight_handler_disabled_set</td> - * <td>highlight_handler_disabled_set_test_p1</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * - * @procedure - * @step 1 Call function highlight_handler_disabled_set(highlight, EINA_TRUE). - * @step 2 Check returned value. - * @step 3 Call function highlight_handler_disabled_set(highlight, EINA_FALSE). - * @step 4 Check returned value. - * </td> - * <td>Evas_Object *highlight, Eina_Bool flag = EINA_TRUE</td> - * <td>All checks passed</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_handler_disabled_set_test_p1) -{ - Evas_Object *parent, *highlight; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - - ck_assert_msg(highlight_handler_disabled_set(highlight, EINA_TRUE), "Disabling handlers was failed."); - ck_assert_msg(highlight_handler_disabled_set(highlight, EINA_FALSE), "Enabling handlers was failed."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_handler_disabled_set - * @{ - * <tr> - * <td>highlight_handler_disabled_set</td> - * <td>highlight_handler_disabled_set_test_p2</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * - * @procedure - * @step 1 Call function highlight_handler_disabled_set(highlight, EINA_TRUE). - * @step 2 Check returned value. - * @step 3 Call function highlight_handler_disabled_set(highlight, EINA_TRUE). - * @step 4 Check returned value. - * </td> - * <td>Evas_Object *highlight, Eina_Bool flag = EINA_TRUE</td> - * <td>All checks passed</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_handler_disabled_set_test_p2) -{ - Evas_Object *parent, *highlight; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - - ck_assert_msg(highlight_handler_disabled_set(highlight, EINA_TRUE), "Disabling handlers was failed."); - ck_assert_msg(highlight_handler_disabled_set(highlight, EINA_TRUE), "Can't disable disabled handlers. Something is wrong"); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_handler_disabled_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_highlight/highlight_handler_mode_set.c b/tests/test_highlight/highlight_handler_mode_set.c deleted file mode 100644 index 544d039..0000000 --- a/tests/test_highlight/highlight_handler_mode_set.c +++ /dev/null @@ -1,76 +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_highlight.h" - -/** - * @addtogroup highlight_test - * @{ - * @addtogroup highlight_handler_mode_set - * @{ - * highlight - * <TABLE> - * @} - */ - -/** - * @addtogroup highlight_handler_mode_set - * @{ - * <tr> - * <td>highlight_handler_mode_set</td> - * <td>highlight_handler_mode_set_test_p</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * - * @procedure - * @step 1 Call function highlight_handler_mode_set(highlight, HIGHLIGHT_STATIC_HANDLERS). - * @step 2 Check returned value. - * @step 3 Call function highlight_handler_mode_set(highlight, HIGHLIGHT_DYNAMIC_HANDLERS). - * @step 4 Check returned value. - * </td> - * <td>Evas_Object *highlight, Highlight_Mode mode = HIGHLIGHT_STATIC_HANDLERS</td> - * <td>All checks passed</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_handler_mode_set_test_p) -{ - Evas_Object *parent, *highlight; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - - ck_assert_msg(highlight_handler_mode_set(highlight, HIGHLIGHT_STATIC_HANDLERS), "Failed to change highlight's mode."); - ck_assert_msg(highlight_handler_mode_set(highlight, HIGHLIGHT_DYNAMIC_HANDLERS), "Failed to change highlight's mode."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_handler_mode_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_highlight/highlight_object_follow.c b/tests/test_highlight/highlight_object_follow.c deleted file mode 100644 index 2337767..0000000 --- a/tests/test_highlight/highlight_object_follow.c +++ /dev/null @@ -1,160 +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_highlight.h" - -/** - * @addtogroup highlight_test - * @{ - * @addtogroup highlight_object_follow - * @{ - * highlight - * <TABLE> - * @} - */ - -/** - * @addtogroup highlight_object_follow - * @{ - * <tr> - * <td>highlight_object_follow</td> - * <td>highlight_object_follow_test_p1</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * @step 4 resized highlight to 200, 200. - * @step 5 Evas_Object that is going to be followed is created. - * - * @procedure - * @step 1 Check highlight's size and position (should be 0, 0, 200, 200). - * @step 2 Call function highlight_object_follow(highlight, object). - * @step 3 Check function's result (returned EINA_TRUE). - * @step 4 Check highlight's size and position (should be same as the object size). - * @step 5 Change object's position (x = 120, y = 135, w = 100, h = 1400). - * @step 6 Check highlight's size and position (should be changed to 120, 135, 100, 1400). - * </td> - * <td>Evas_Object *highlight, Evas_Object *object</td> - * <td>All checks passed</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_object_follow_test_p1) -{ - Evas_Object *parent, *highlight, *object; - Evas_Coord x, y, w, h; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - object = elm_button_add(parent); - evas_object_resize(highlight, 200, 200); - evas_object_move(object, 600, 35); - evas_object_resize(object, 400, 400); - evas_object_show(highlight); - - evas_object_geometry_get(highlight, &x, &y, &w, &h); - ck_assert_msg(((x == 0) && (y == 0) && (w = 200) && (h = 200)), "Wrong position of highlight."); - - ck_assert_msg(highlight_object_follow(highlight, object), "Can't follow the object"); - evas_object_geometry_get(highlight, &x, &y, &w, &h); - ck_assert_msg(((x == 600) && (y == 35) && (w = 400) && (h = 400)), "Wrong position of highlight."); - - evas_object_move(object, 120, 135); - evas_object_resize(object, 100, 1400); - evas_object_geometry_get(highlight, &x, &y, &w, &h); - ck_assert_msg(((x == 120) && (y == 135) && (w = 100) && (h = 1400)), "Wrong position of highlight."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_object_follow - * @{ - * <tr> - * <td>highlight_object_follow</td> - * <td>highlight_object_follow_test_p2</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * @step 4 Evas_Object that is going to be followed is created. - * @step 5 Another Evas_Object that is going to be followed is created. - * - * @procedure - * @step 1 Call function highlight_object_follow(highlight, object). - * @step 2 Check function's result (returned EINA_TRUE). - * @step 3 Call function highlight_object_follow(highlight, new_obj). - * @step 4 Check function's result (returned EINA_TRUE). - * @step 5 Check highlight's size and position (should be changed to 100, 100, 100, 100). - * @step 6 Change object's position (x = 120, y = 135, w = 100, h = 1400). - * @step 7 Check highlight's size and position (shouldn't be changed, still 100, 100, 100, 100). - * @step 8 Change new_object's position (x = 40, y = 40, w = 40, h = 40). - * @step 9 Check highlight's size and position (should be changed to 40, 40, 40, 40). - * </td> - * <td>Evas_Object *highlight, Evas_Object *object</td> - * <td>All checks passed</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_object_follow_test_p2) -{ - Evas_Object *parent, *highlight, *object, *new_obj; - Evas_Coord x, y, w, h; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - object = elm_button_add(parent); - evas_object_move(object, 600, 35); - evas_object_resize(object, 400, 400); - new_obj = elm_button_add(parent); - evas_object_move(new_obj, 100, 100); - evas_object_resize(new_obj, 100, 100); - evas_object_show(highlight); - - ck_assert_msg(highlight_object_follow(highlight, object), "Can't follow first object"); - ck_assert_msg(highlight_object_follow(highlight, new_obj), "Can't follow second object"); - evas_object_geometry_get(highlight, &x, &y, &w, &h); - ck_assert_msg(((x == 100) && (y == 100) && (w = 100) && (h = 100)), "Last object that was followed changed highlight's position and size."); - - evas_object_move(object, 120, 135); - evas_object_resize(object, 100, 1400); - evas_object_geometry_get(highlight, &x, &y, &w, &h); - ck_assert_msg(((x == 100) && (y == 100) && (w = 100) && (h = 100)), "Last object that was followed changed highlight's position and size."); - - evas_object_move(new_obj, 40, 40); - evas_object_resize(new_obj, 40, 40); - evas_object_geometry_get(highlight, &x, &y, &w, &h); - ck_assert_msg(((x == 40) && (y == 40) && (w = 40) && (h = 40)), "New followed object can't change highlight's size and position."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_object_follow - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_highlight/highlight_object_unfollow.c b/tests/test_highlight/highlight_object_unfollow.c deleted file mode 100644 index 323a514..0000000 --- a/tests/test_highlight/highlight_object_unfollow.c +++ /dev/null @@ -1,123 +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_highlight.h" - -/** - * @addtogroup highlight_test - * @{ - * @addtogroup highlight_object_unfollow - * @{ - * highlight - * <TABLE> - * @} - */ - -/** - * @addtogroup highlight_object_unfollow - * @{ - * <tr> - * <td>highlight_object_unfollow</td> - * <td>highlight_object_unfollow_test_p1</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * - * @procedure - * @step 1 Call function highlight_object_unfollow(highlight). - * @step 2 Check returned value. - * </td> - * <td>Evas_Object *highlight</td> - * <td>EVAS_TRUE returned</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_object_unfollow_test_p1) -{ - Evas_Object *parent, *highlight; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - - ck_assert_msg(highlight_object_unfollow(highlight), "Not successfull unfollow."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_object_unfollow - * @{ - * <tr> - * <td>highlight_object_unfollow</td> - * <td>highlight_object_unfollow_test_p2</td> - * <td> - * @precondition - * @step 1 initialized elm - * @step 2 main window created. - * @step 3 highlight created. - * @step 4 Evas Object that is going to be followed created. - * @step 5 highlight already following an object. - * - * @procedure - * @step 1 Call function highlight_object_unfollow(highlight). - * @step 2 Check returned value. - * @step 3 Move and resize previously followed object (to 1, 1, 1, 1). - * @step 4 Check that highlight's size and position wasn't changed. - * </td> - * <td>Evas_Object *highlight</td> - * <td>All checks passed</td> - * </tr> - * @} - */ -EFLETE_TEST (highlight_object_unfollow_test_p2) -{ - Evas_Object *parent, *highlight, *object; - Evas_Coord x, y, w, h; - - elm_init(0, 0); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - highlight = highlight_add(parent); - evas_object_resize(highlight, 200, 200); - evas_object_show(highlight); - object = elm_button_add(parent); - evas_object_move(object, 432, 166); - evas_object_resize(object, 1000, 5); - highlight_object_follow(highlight, object); - - ck_assert_msg(highlight_object_unfollow(highlight), "Not successfull unfollow."); - evas_object_move(object, 1, 1); - evas_object_resize(object, 1, 1); - evas_object_geometry_get(highlight, &x, &y, &w, &h); - ck_assert_msg(((x == 432) && (y == 166) && (w == 1000) && (h == 5)), "Highlight still following an object."); - - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup highlight_object_unfollow - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_highlight/test_highlight.c b/tests/test_highlight/test_highlight.c deleted file mode 100644 index 47fb829..0000000 --- a/tests/test_highlight/test_highlight.c +++ /dev/null @@ -1,59 +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_highlight.h" - -Suite* test_suite (void) { - Suite *suite = suite_create("highlight_test"); - TCase *tcase = tcase_create("TCase"); - tcase_add_test(tcase, highlight_add_test_p); - - tcase_add_test(tcase, highlight_handler_disabled_set_test_p1); - tcase_add_test(tcase, highlight_handler_disabled_set_test_p2); - - tcase_add_test(tcase, highlight_handler_align_hide_test_p1); - tcase_add_test(tcase, highlight_handler_align_hide_test_p2); - - tcase_add_test(tcase, highlight_handler_align_show_test_p1); - tcase_add_test(tcase, highlight_handler_align_show_test_p2); - - tcase_add_test(tcase, highlight_handler_align_visible_get_test_p1); - tcase_add_test(tcase, highlight_handler_align_visible_get_test_p2); - - tcase_add_test(tcase, highlight_handler_mode_set_test_p); - - tcase_add_test(tcase, highlight_object_follow_test_p1); - tcase_add_test(tcase, highlight_object_follow_test_p2); - - tcase_add_test(tcase, highlight_object_unfollow_test_p1); - tcase_add_test(tcase, highlight_object_unfollow_test_p2); - 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, "highlight_test.xml"); - srunner_run_all(runner, CK_VERBOSE); - number_failed = srunner_ntests_failed(runner); - srunner_free(runner); - return number_failed; -} diff --git a/tests/test_highlight/test_highlight.h b/tests/test_highlight/test_highlight.h deleted file mode 100644 index 104176a..0000000 --- a/tests/test_highlight/test_highlight.h +++ /dev/null @@ -1,48 +0,0 @@ - -/* Edje Theme Editor -* Copyright (C) 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 "highlight.h" -#include "main_window.h" - -/** - * @defgroup test_highlight - */ - -void highlight_add_test_p(int); - -void highlight_handler_disabled_set_test_p1(int); -void highlight_handler_disabled_set_test_p2(int); - -void highlight_handler_align_hide_test_p1(int); -void highlight_handler_align_hide_test_p2(int); - -void highlight_handler_align_show_test_p1(int); -void highlight_handler_align_show_test_p2(int); - -void highlight_handler_align_visible_get_test_p1(int); -void highlight_handler_align_visible_get_test_p2(int); - -void highlight_handler_mode_set_test_p(int); - -void highlight_object_follow_test_p1(int); -void highlight_object_follow_test_p2(int); - -void highlight_object_unfollow_test_p1(int); -void highlight_object_unfollow_test_p2(int); --