rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=cea7fbac4879faf4e9e9ea8522c498309440f590
commit cea7fbac4879faf4e9e9ea8522c498309440f590 Author: Vyacheslav Reutskiy <v.reuts...@samsung.com> Date: Thu Mar 17 16:03:48 2016 +0200 UTC: remove the workspace tests Change-Id: Ifc0cbc50c8704b411b696d2fe1dc5f9b9c9dea9e --- tests/Makefile.am | 26 -- tests/test_ui_workspace/test_ui_workspace.c | 58 ---- tests/test_ui_workspace/test_ui_workspace.h | 46 ---- tests/test_ui_workspace/workspace_add.c | 73 ----- .../workspace_edit_object_part_item_add.c | 300 --------------------- .../workspace_edit_object_part_item_del.c | 224 --------------- .../workspace_edit_object_part_state_set.c | 110 -------- .../workspace_edit_object_recalc.c | 96 ------- .../workspace_highlight_align_visible_get.c | 156 ----------- .../workspace_highlight_align_visible_set.c | 154 ----------- .../workspace_object_area_visible_get.c | 156 ----------- .../workspace_object_area_visible_set.c | 154 ----------- .../workspace_separate_mode_get.c | 154 ----------- .../workspace_separate_mode_set.c | 153 ----------- .../test_ui_workspace/workspace_zoom_factor_get.c | 95 ------- .../test_ui_workspace/workspace_zoom_factor_set.c | 84 ------ 16 files changed, 2039 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 007d0d5..5cfaece 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -15,7 +15,6 @@ logger_test \ project_manager_test \ config_test \ cursor_test \ -ui_workspace_test \ colorselector_test \ shortcuts_test @@ -39,7 +38,6 @@ FLAGS = \ -I${top_srcdir}/src/bin/ui/editors \ -I${top_srcdir}/src/bin/ui/notification \ -I${top_srcdir}/src/bin/ui/preference \ --I${top_srcdir}/src/bin/ui/workspace \ -I${top_srcdir}/src/bin/ui/live_view \ -I${top_srcdir}/src/bin/ui/live_view/elementary \ -I${top_srcdir}/src/bin/ui/shortcuts \ @@ -72,7 +70,6 @@ include_HEADERS = \ ../tests/test_project_manager/test_project_manager.h \ ../tests/test_config/test_config.h \ ../tests/test_cursor/test_cursor.h \ - ../tests/test_ui_workspace/test_ui_workspace.h \ ../tests/test_live_widget/test_live_widget.h \ ../tests/test_shortcuts/test_shortcuts.h \ ../tests/test_colorselector/test_colorselector.h @@ -219,29 +216,6 @@ cursor_test_SOURCES = \ cursor_test_CFLAGS = ${FLAGS} cursor_test_LDADD = ${LD} -#preference_test_SOURCES = \ -#../tests/test_preference/test_preference.c \ -#../tests/test_preference/preference_add.c \ -#../tests/test_preference/preferences_project_autosave_update.c -#preference_test_CFLAGS = ${FLAGS} -#preference_test_LDADD = ${LD} - -ui_workspace_test_SOURCES = \ -../tests/test_ui_workspace/test_ui_workspace.c \ -../tests/test_ui_workspace/workspace_add.c \ -../tests/test_ui_workspace/workspace_edit_object_part_state_set.c \ -../tests/test_ui_workspace/workspace_edit_object_recalc.c \ -../tests/test_ui_workspace/workspace_zoom_factor_get.c \ -../tests/test_ui_workspace/workspace_zoom_factor_set.c \ -../tests/test_ui_workspace/workspace_separate_mode_set.c \ -../tests/test_ui_workspace/workspace_separate_mode_get.c \ -../tests/test_ui_workspace/workspace_highlight_align_visible_get.c \ -../tests/test_ui_workspace/workspace_highlight_align_visible_set.c \ -../tests/test_ui_workspace/workspace_object_area_visible_get.c \ -../tests/test_ui_workspace/workspace_object_area_visible_set.c -ui_workspace_test_CFLAGS = ${FLAGS} -ui_workspace_test_LDADD = ${LD} - live_widget_test_SOURCES = \ ../tests/test_live_widget/test_live_widget.c \ ../tests/test_live_widget/live_widget_create.c \ diff --git a/tests/test_ui_workspace/test_ui_workspace.c b/tests/test_ui_workspace/test_ui_workspace.c deleted file mode 100644 index a6b4bd4..0000000 --- a/tests/test_ui_workspace/test_ui_workspace.c +++ /dev/null @@ -1,58 +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_ui_workspace.h" - -Suite* test_suite (void) { - Suite *suite = suite_create("ui_workspace_test"); - TCase *tcase = tcase_create("TCase"); - - tcase_add_test(tcase, workspace_add_test_p); - tcase_add_test(tcase, workspace_edit_object_part_state_set_test_p); - tcase_add_test(tcase, workspace_edit_object_recalc_test_p); - tcase_add_test(tcase, workspace_highlight_align_visible_get_test_p1); - tcase_add_test(tcase, workspace_highlight_align_visible_get_test_p2); - tcase_add_test(tcase, workspace_highlight_align_visible_set_test_p1); - tcase_add_test(tcase, workspace_highlight_align_visible_set_test_p2); - tcase_add_test(tcase, workspace_object_area_visible_get_test_p1); - tcase_add_test(tcase, workspace_object_area_visible_get_test_p2); - tcase_add_test(tcase, workspace_object_area_visible_set_test_p1); - tcase_add_test(tcase, workspace_object_area_visible_set_test_p2); - tcase_add_test(tcase, workspace_separate_mode_get_test_p1); - tcase_add_test(tcase, workspace_separate_mode_get_test_p2); - tcase_add_test(tcase, workspace_separate_mode_set_test_p1); - tcase_add_test(tcase, workspace_separate_mode_set_test_p2); - tcase_add_test(tcase, workspace_zoom_factor_set_test_p); - tcase_add_test(tcase, workspace_zoom_factor_get_test_p); - - suite_add_tcase(suite, tcase); - return suite; -} - -int main(void) -{ - int number_failed; - Suite *suite = test_suite(); - SRunner *runner = srunner_create(suite); - srunner_set_xml (runner, "test_ui_workspace.xml"); - srunner_run_all(runner, CK_VERBOSE); - number_failed = srunner_ntests_failed(runner); - srunner_free(runner); - return number_failed; -} diff --git a/tests/test_ui_workspace/test_ui_workspace.h b/tests/test_ui_workspace/test_ui_workspace.h deleted file mode 100644 index 79a8ee5..0000000 --- a/tests/test_ui_workspace/test_ui_workspace.h +++ /dev/null @@ -1,46 +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 "eflete.h" -#include "workspace.h" -#include "main_window.h" -#include "utc_common.h" - -#define TEST_NAME "ui_workspace" -/** - * @defgroup test_ui_workspace - */ - -void workspace_add_test_p(int); -void workspace_edit_object_part_state_set_test_p(int); -void workspace_edit_object_recalc_test_p(int); -void workspace_highlight_align_visible_get_test_p1(int); -void workspace_highlight_align_visible_get_test_p2(int); -void workspace_highlight_align_visible_set_test_p1(int); -void workspace_highlight_align_visible_set_test_p2(int); -void workspace_object_area_visible_get_test_p1(int); -void workspace_object_area_visible_get_test_p2(int); -void workspace_object_area_visible_set_test_p1(int); -void workspace_object_area_visible_set_test_p2(int); -void workspace_separate_mode_get_test_p1(int); -void workspace_separate_mode_get_test_p2(int); -void workspace_separate_mode_set_test_p1(int); -void workspace_separate_mode_set_test_p2(int); -void workspace_zoom_factor_get_test_p(int); -void workspace_zoom_factor_set_test_p(int); diff --git a/tests/test_ui_workspace/workspace_add.c b/tests/test_ui_workspace/workspace_add.c deleted file mode 100644 index 9a45245..0000000 --- a/tests/test_ui_workspace/workspace_add.c +++ /dev/null @@ -1,73 +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_ui_workspace.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_add - * @{ - * ui_workspace - * <TABLE> - * @} - */ - -/** - * @addtogroup workspace_add - * @{ - * <tr> - * <td>workspace_add</td> - * <td>workspace_add_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extension theme from EFLETE_THEME file - * @step 3 create parent window - * - * @procedure - * @step 1 Call workspace_add - * @step 2 Check returned pointer - * </td> - * <td>(Evas_Object *) parent</td> - * <td>Returned pointer not NULL</td> - * </tr> - * @} - */ -EFLETE_TEST (workspace_add_test_p) -{ - elm_init(0, 0); - app_init(); - Evas_Object *parent, *workspace; - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - ck_assert_msg(workspace != NULL, "Failed create workspace object."); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup workspace_add - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_edit_object_part_item_add.c b/tests/test_ui_workspace/workspace_edit_object_part_item_add.c deleted file mode 100644 index d20c851..0000000 --- a/tests/test_ui_workspace/workspace_edit_object_part_item_add.c +++ /dev/null @@ -1,300 +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_ui_workspace.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_edit_object_part_item_add - * @{ - * ui_workspace - * <TABLE> - * @} - */ - -/** - * @addtogroup workspace_edit_object_part_item_add - * @{ - * <tr> - * <td>workspace_edit_object_part_item_add</td> - * <td>workspace_edit_object_part_item_add_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create workspace object - * @step 4 create style object - * @step 5 set edit object into workspace - * - * @procedure - * @step 1 call workspace_edit_object_part_item_add - * @step 2 check returned value - * @step 3 get list of items for part "table" and search item with name "second" - * </td> - * <td>(Evas_Object *) workspace, (Eina_Stringshare *)"table", (Eina_Stringshare *)"second", (Eina_Stringshare *)"elm/radio/base/default" </td> - * <td>All checks are passed</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_edit_object_part_item_add_test_p1) -{ - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - Eina_File *mmap_file = NULL; - Eina_Stringshare *item, *part_name, *source, *data; - Eina_List *items, *l; - const char *file = "./edj_build/workspace_edit_object_part_item_add.edj"; - - elm_init(0, 0); - app_init(); - item = eina_stringshare_add("positive_1"); - part_name = eina_stringshare_add("table"); - source = eina_stringshare_add("elm/radio/base/def"); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - mmap_file = eina_file_open(file, EINA_FALSE); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "layout/table", LAYOUT, NULL); - wm_style_data_load(style, e, mmap_file); - //workspace_edit_object_set(workspace, style, file); - - res = workspace_edit_object_part_item_add(workspace, part_name, item, source); - ck_assert_msg(res == EINA_TRUE, "Failed add new item into part"); - res = EINA_FALSE; - items = edje_edit_part_items_list_get(style->obj, part_name); - EINA_LIST_FOREACH(items, l, data) - { - if (data == item) - { - res = EINA_TRUE; - break; - } - } - ck_assert_msg(res == EINA_TRUE, "Added item do not exist in edje edit object"); - - edje_edit_string_list_free(items); - wm_style_free(style); - //workspace_edit_object_unset(workspace); - eina_file_close(mmap_file); - eina_stringshare_del(item); - eina_stringshare_del(part_name); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup workspace_edit_object_part_item_add - * @{ - * <tr> - * <td>workspace_edit_object_part_item_add</td> - * <td>workspace_edit_object_part_item_add_test_n1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create workspace object - * @step 4 create style object - * @step 5 set edit object into workspace - * - * @procedure - * @step 1 call workspace_edit_object_part_item_add with wrong part name - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) workspace, (Eina_Stringshare *)"wrong_name", (Eina_Stringshare *)"second", (Eina_Stringshare *)"elm/radio/base/default" </td> - * <td>EINA_FALSE value returned</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_edit_object_part_item_add_test_n1) -{ - Eina_Bool res = EINA_TRUE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - Eina_File *mmap_file = NULL; - Eina_Stringshare *item, *part_name, *source; - const char *file = "./edj_build/workspace_edit_object_part_item_add.edj"; - - elm_init(0, 0); - app_init(); - item = eina_stringshare_add("negative_1"); - part_name = eina_stringshare_add("wrong_name"); - source = eina_stringshare_add("elm/radio/base/def"); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - mmap_file = eina_file_open(file, EINA_FALSE); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "layout/table", LAYOUT, NULL); - wm_style_data_load(style, e, mmap_file); - //workspace_edit_object_set(workspace, style, file); - - res = workspace_edit_object_part_item_add(workspace, part_name, item, source); - ck_assert_msg(res == EINA_FALSE, "Added new item into unexists part"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - eina_file_close(mmap_file); - eina_stringshare_del(item); - eina_stringshare_del(part_name); - eina_stringshare_del(source); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup workspace_edit_object_part_item_add - * @{ - * <tr> - * <td>workspace_edit_object_part_item_add</td> - * <td>workspace_edit_object_part_item_add_test_n2</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create workspace object - * @step 4 create style object - * @step 5 set edit object into workspace - * - * @procedure - * @step 1 call workspace_edit_object_part_item_add with item name, that - * aready present - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) workspace, (Eina_Stringshare *)"table", (Eina_Stringshare *)"first", (Eina_Stringshare *)"elm/radio/base/default" </td> - * <td>EINA_FALSE value returned</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_edit_object_part_item_add_test_n2) -{ - Eina_Bool res = EINA_TRUE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - Eina_File *mmap_file = NULL; - Eina_Stringshare *item, *part_name, *source; - const char *file = "./edj_build/workspace_edit_object_part_item_add.edj"; - - elm_init(0, 0); - app_init(); - item = eina_stringshare_add("first"); - part_name = eina_stringshare_add("table"); - source = eina_stringshare_add("elm/radio/base/def"); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - mmap_file = eina_file_open(file, EINA_FALSE); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "layout/table", LAYOUT, NULL); - wm_style_data_load(style, e, mmap_file); - //workspace_edit_object_set(workspace, style, file); - - res = workspace_edit_object_part_item_add(workspace, part_name, item, source); - ck_assert_msg(res == EINA_FALSE, "Added new item with name, that already exist"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - eina_file_close(mmap_file); - eina_stringshare_del(item); - eina_stringshare_del(part_name); - eina_stringshare_del(source); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup workspace_edit_object_part_item_add - * @{ - * <tr> - * <td>workspace_edit_object_part_item_add</td> - * <td>workspace_edit_object_part_item_add_test_n7</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create workspace object - * @step 4 create style object - * @step 5 set edit object into workspace - * - * @procedure - * @step 1 call workspace_edit_object_part_item_add with wrong source name - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) workspace, (Eina_Stringshare *)"table", (Eina_Stringshare *)"negative_7", (Eina_Stringshare *)"wrong_source" </td> - * <td>EINA_FALSE value returned</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_edit_object_part_item_add_test_n7) -{ - Eina_Bool res = EINA_TRUE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - Eina_File *mmap_file = NULL; - Eina_Stringshare *item, *part_name, *source; - const char *file = "./edj_build/workspace_edit_object_part_item_add.edj"; - - elm_init(0, 0); - app_init(); - item = eina_stringshare_add("negative_7"); - part_name = eina_stringshare_add("table"); - source = eina_stringshare_add("wrong_source"); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - mmap_file = eina_file_open(file, EINA_FALSE); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "layout/table", LAYOUT, NULL); - wm_style_data_load(style, e, mmap_file); - //workspace_edit_object_set(workspace, style, file); - - res = workspace_edit_object_part_item_add(workspace, part_name, item, source); - ck_assert_msg(res == EINA_FALSE, "Added new item with wrong source"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - eina_file_close(mmap_file); - eina_stringshare_del(item); - eina_stringshare_del(part_name); - eina_stringshare_del(source); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup workspace_edit_object_part_item_add - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_edit_object_part_item_del.c b/tests/test_ui_workspace/workspace_edit_object_part_item_del.c deleted file mode 100644 index 66b68c0..0000000 --- a/tests/test_ui_workspace/workspace_edit_object_part_item_del.c +++ /dev/null @@ -1,224 +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_ui_workspace.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_edit_object_part_item_del - * @{ - * ui_workspace - * <TABLE> - * @} - */ - -/** - * @addtogroup workspace_edit_object_part_item_del - * @{ - * <tr> - * <td>workspace_edit_object_part_item_del</td> - * <td>workspace_edit_object_part_item_del_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create workspace object - * @step 4 create style object - * @step 5 set edit object into workspace - * - * @procedure - * @step 1 call workspace_edit_object_part_item_del - * @step 2 check returned value - * @step 3 get list of items for part "table", list should not contain deleted. - * </td> - * <td>(Evas_Object *) workspace, (Eina_Stringshare *)"table", (Eina_Stringshare *)"second" </td> - * <td>All checks are passed</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_edit_object_part_item_del_test_p1) -{ - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - Eina_File *mmap_file = NULL; - Eina_Stringshare *item, *part_name; - Eina_List *items, *l = NULL; - const char *file = "./edj_build/workspace_edit_object_part_item_del.edj"; - - elm_init(0, 0); - app_init(); - item = eina_stringshare_add("second"); - part_name = eina_stringshare_add("table"); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - mmap_file = eina_file_open(file, EINA_FALSE); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "layout/table", LAYOUT, NULL); - wm_style_data_load(style, e, mmap_file); - //workspace_edit_object_set(workspace, style, file); - - res = workspace_edit_object_part_item_del(workspace, part_name, item); - ck_assert_msg(res == EINA_TRUE, "Failed delete item from part"); - items = edje_edit_part_items_list_get(style->obj, part_name); - l = eina_list_data_find_list(items, item); - ck_assert_msg(l == NULL, "Item still exist in edje object"); - - edje_edit_string_list_free(items); - wm_style_free(style); - //workspace_edit_object_unset(workspace); - eina_file_close(mmap_file); - eina_stringshare_del(item); - eina_stringshare_del(part_name); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup workspace_edit_object_part_item_del - * @{ - * <tr> - * <td>workspace_edit_object_part_item_del</td> - * <td>workspace_edit_object_part_item_del_test_n1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create workspace object - * @step 4 create style object - * @step 5 set edit object into workspace - * - * @procedure - * @step 1 call workspace_edit_object_part_item_del with wrong part name - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) workspace, (Eina_Stringshare *)"wrong_name", (Eina_Stringshare *)"first" </td> - * <td>EINA_FALSE value returned</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_edit_object_part_item_del_test_n1) -{ - Eina_Bool res = EINA_TRUE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - Eina_File *mmap_file = NULL; - Eina_Stringshare *item, *part_name; - const char *file = "./edj_build/workspace_edit_object_part_item_del.edj"; - - elm_init(0, 0); - app_init(); - item = eina_stringshare_add("first"); - part_name = eina_stringshare_add("wrong_name"); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - mmap_file = eina_file_open(file, EINA_FALSE); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "layout/table", LAYOUT, NULL); - wm_style_data_load(style, e, mmap_file); - //workspace_edit_object_set(workspace, style, file); - - res = workspace_edit_object_part_item_del(workspace, part_name, item); - ck_assert_msg(res == EINA_FALSE, "Deleted item from unexists part"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - eina_file_close(mmap_file); - eina_stringshare_del(item); - eina_stringshare_del(part_name); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup workspace_edit_object_part_item_del - * @{ - * <tr> - * <td>workspace_edit_object_part_item_del</td> - * <td>workspace_edit_object_part_item_del_test_n2</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 create parent window - * @step 3 create workspace object - * @step 4 create style object - * @step 5 set edit object into workspace - * - * @procedure - * @step 1 call workspace_edit_object_part_item_del with wrong item name. - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) workspace, (Eina_Stringshare *)"table", (Eina_Stringshare *)"wrong_name"</td> - * <td>EINA_FALSE value returned</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_edit_object_part_item_del_test_n2) -{ - Eina_Bool res = EINA_TRUE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - Eina_File *mmap_file = NULL; - Eina_Stringshare *item, *part_name; - const char *file = "./edj_build/workspace_edit_object_part_item_del.edj"; - - elm_init(0, 0); - app_init(); - item = eina_stringshare_add("wrong_name"); - part_name = eina_stringshare_add("table"); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - mmap_file = eina_file_open(file, EINA_FALSE); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "layout/table", LAYOUT, NULL); - wm_style_data_load(style, e, mmap_file); - //workspace_edit_object_set(workspace, style, file); - - res = workspace_edit_object_part_item_del(workspace, part_name, item); - ck_assert_msg(res == EINA_FALSE, "Delete item, that not presented in part"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - eina_file_close(mmap_file); - eina_stringshare_del(item); - eina_stringshare_del(part_name); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup workspace_edit_object_part_item_del - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_edit_object_part_state_set.c b/tests/test_ui_workspace/workspace_edit_object_part_state_set.c deleted file mode 100644 index 713a9c3..0000000 --- a/tests/test_ui_workspace/workspace_edit_object_part_state_set.c +++ /dev/null @@ -1,110 +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_ui_workspace.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_edit_object_part_state_set - * @{ - * ui_workspace - * <TABLE> - * @} -*/ - -/** - * @addtogroup workspace_edit_object_part_state_set - * @{ - * <tr> - * <td>workspace_edit_object_part_state_set</td> - * <td>workspace_edit_object_part_state_set_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 Create part object with many states. Non default state set. - * @step 7 set edit object into workspace - * - * @procedure - * @step 1 select part state with workspace_edit_object_part_state_set - * @step 2 check returned value from function - * @step 3 check that current state name in edje edit object is equal to setted state - * @step 4 check that current state value in edje edit object is equal to setted state - * </td> - * <td>(Evas_Object *) workspace, (Part *) part</td> - * <td>All checks passed</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_edit_object_part_state_set_test_p) -{ -ck_assert(false); -/* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Part *part = NULL; - Evas *e = NULL; - const char *get_state_name = NULL; - double get_state_value = -1; - - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/def", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_edit_object_part_state_set.edj", - style->full_group_name); - part = wm_part_add(style, "elm.text"); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_edit_object_part_state_set.edj"); - part->curr_state = eina_stringshare_add("visible"); - part->curr_state_value = 0.0; - - //res = workspace_edit_object_part_state_set(workspace, part); - ck_assert_msg(res == EINA_TRUE, "Failed to set state for part loaded into workspace"); - get_state_name = edje_edit_part_selected_state_get(style->obj, part->name, - &get_state_value); - ck_assert_msg(strcmp(get_state_name, "visible") == 0, - "Setted state name is not equal to name in edje edit object"); - ck_assert_msg(get_state_value == 0.0, - "Setted state value is not equal to value in edje edit object"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown();*/ -} -END_TEST - -/** - * @addtogroup workspace_edit_object_part_state_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_edit_object_recalc.c b/tests/test_ui_workspace/workspace_edit_object_recalc.c deleted file mode 100644 index 98b2eb8..0000000 --- a/tests/test_ui_workspace/workspace_edit_object_recalc.c +++ /dev/null @@ -1,96 +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_ui_workspace.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_edit_object_recalc - * @{ - * ui_workspace - * <TABLE> - * @} - */ - -/** - * @addtogroup workspace_edit_object_recalc - * @{ - * <tr> - * <td>workspace_edit_object_recalc</td> - * <td>workspace_edit_object_recalc_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 Mmap edj file. - * @step 5 create workspace object - * @step 6 create style object - * @step 7 load style data from edje file - * @step 8 set edit object into workspace - * - * @procedure - * @step 1 call workspace_edit_object_recalc - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) workspace</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST (workspace_edit_object_recalc_test_p) -{ -ck_assert(false); - /* - elm_init(0, 0); - app_init(); - Evas_Object *parent, *workspace; - Eina_Bool ret = EINA_FALSE; - Style *style = NULL; - Evas *e = NULL; - Eina_File *mmap_file = NULL; - - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - mmap_file = eina_file_open("./edj_build/workspace_edit_object_recalc.edj", EINA_FALSE); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - wm_style_data_load(style, e, mmap_file); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_edit_object_recalc.edj"); - ret = workspace_edit_object_recalc(workspace); - ck_assert_msg(ret == EINA_TRUE, "Fail recalc edit object in workspace"); - - wm_style_free(style); - eina_file_close(mmap_file); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown();*/ -} -END_TEST - -/** - * @addtogroup workspace_edit_object_recalc - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_highlight_align_visible_get.c b/tests/test_ui_workspace/workspace_highlight_align_visible_get.c deleted file mode 100644 index 10fa2e6..0000000 --- a/tests/test_ui_workspace/workspace_highlight_align_visible_get.c +++ /dev/null @@ -1,156 +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_ui_workspace.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_highlight_align_visible_get - * @{ - * ui_workspace - * <TABLE> - * @} - */ - -/** - * @addtogroup workspace_highlight_align_visible_get - * @{ - * <tr> - * <td>workspace_highlight_align_visible_get</td> - * <td>workspace_highlight_align_visible_get_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_highlight_align_visible_set - * @step 2 call workspace_highlight_align_visible_get - * @step 3 check returned value - * </td> - * <td>(Evas_Object *) workspace</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_highlight_align_visible_get_test_p1) -{ -ck_assert(false); -/* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_highlight_align_visible_get.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_highlight_align_visible_get.edj"); - - workspace_highlight_align_visible_set(workspace, EINA_TRUE); - res = workspace_highlight_align_visible_get(workspace); - ck_assert_msg(res == EINA_TRUE, "Failed getting visibility of highlight's align handler"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); - */ -} -END_TEST - -/** - * @addtogroup workspace_highlight_align_visible_get - * @{ - * <tr> - * <td>workspace_highlight_align_visible_get</td> - * <td>workspace_highlight_align_visible_get_test_p2</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_highlight_align_visible_set - * @step 2 call workspace_highlight_align_visible_get - * @step 3 check returned value - * </td> - * <td>(Evas_Object *) workspace</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_highlight_align_visible_get_test_p2) -{ -ck_assert(false); -/* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_highlight_align_visible_get.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_highlight_align_visible_get.edj"); - - workspace_highlight_align_visible_set(workspace, EINA_FALSE); - res = workspace_highlight_align_visible_get(workspace); - ck_assert_msg(res == EINA_FALSE, "Failed getting visibility of highlight's align handler"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); - */ -} -END_TEST - -/** - * @addtogroup workspace_highlight_align_visible_get - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_highlight_align_visible_set.c b/tests/test_ui_workspace/workspace_highlight_align_visible_set.c deleted file mode 100644 index e9af879..0000000 --- a/tests/test_ui_workspace/workspace_highlight_align_visible_set.c +++ /dev/null @@ -1,154 +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_ui_workspace.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_highlight_align_visible_set - * @{ - * ui_workspace - * <TABLE> - * @} - */ - -/** - * @addtogroup workspace_highlight_align_visible_set - * @{ - * <tr> - * <td>workspace_highlight_align_visible_set</td> - * <td>workspace_highlight_align_visible_set_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_highlight_align_visible_set - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) workspace, EINA_TRUE</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_highlight_align_visible_set_test_p1) -{ - ck_assert(false); - /* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_highlight_align_visible_set.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_highlight_align_visible_set.edj"); - - res = workspace_highlight_align_visible_set(workspace, EINA_TRUE); - ck_assert_msg(res == EINA_TRUE, "Failed setting visibility for highlight's align handler"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); - */ -} -END_TEST - -/** - * @addtogroup workspace_highlight_align_visible_set - * @{ - * <tr> - * <td>workspace_highlight_align_visible_set</td> - * <td>workspace_highlight_align_visible_set_test_p2</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_highlight_align_visible_set(EINA_TRUE) - * @step 2 call workspace_highlight_align_visible_set(EINA_FALSE) - * @step 3 check returned value - * </td> - * <td>(Evas_Object *) workspace, EINA_TRUE</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_highlight_align_visible_set_test_p2) -{ - ck_assert(false); - /* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_highlight_align_visible_set.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_highlight_align_visible_set.edj"); - - workspace_highlight_align_visible_set(workspace, EINA_TRUE); - res = workspace_highlight_align_visible_set(workspace, EINA_FALSE); - ck_assert_msg(res == EINA_TRUE, "Failed setting visibility for highlight's align handler"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); - */ -} -END_TEST - -/** - * @addtogroup workspace_highlight_align_visible_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_object_area_visible_get.c b/tests/test_ui_workspace/workspace_object_area_visible_get.c deleted file mode 100644 index b4d805a..0000000 --- a/tests/test_ui_workspace/workspace_object_area_visible_get.c +++ /dev/null @@ -1,156 +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_ui_workspace.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_object_area_visible_get - * @{ - * ui_workspace - * <TABLE> - * @} - */ - -/** - * @addtogroup workspace_object_area_visible_get - * @{ - * <tr> - * <td>workspace_object_area_visible_get</td> - * <td>workspace_object_area_visible_get_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_object_area_visible_set - * @step 2 call workspace_object_area_visible_get - * @step 3 check returned value - * </td> - * <td>(Evas_Object *) workspace</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_object_area_visible_get_test_p1) -{ - ck_assert(false); - /* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_object_area_visible_get.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_object_area_visible_get.edj"); - - workspace_object_area_visible_set(workspace, EINA_TRUE); - res = workspace_object_area_visible_get(workspace); - ck_assert_msg(res == EINA_TRUE, "Failed getting visibility of object area"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); - */ -} -END_TEST - -/** - * @addtogroup workspace_object_area_visible_get - * @{ - * <tr> - * <td>workspace_object_area_visible_get</td> - * <td>workspace_object_area_visible_get_test_p2</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_object_area_visible_set - * @step 2 call workspace_object_area_visible_get - * @step 3 check returned value - * </td> - * <td>(Evas_Object *) workspace</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_object_area_visible_get_test_p2) -{ - ck_assert(false); - /* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_object_area_visible_get.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_object_area_visible_get.edj"); - - workspace_object_area_visible_set(workspace, EINA_FALSE); - res = workspace_object_area_visible_get(workspace); - ck_assert_msg(res == EINA_FALSE, "Failed getting visibility of object area"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); - */ -} -END_TEST - -/** - * @addtogroup workspace_object_area_visible_get - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_object_area_visible_set.c b/tests/test_ui_workspace/workspace_object_area_visible_set.c deleted file mode 100644 index 7bebca8..0000000 --- a/tests/test_ui_workspace/workspace_object_area_visible_set.c +++ /dev/null @@ -1,154 +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_ui_workspace.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_object_area_visible_set - * @{ - * ui_workspace - * <TABLE> - * @} - */ - -/** - * @addtogroup workspace_object_area_visible_set - * @{ - * <tr> - * <td>workspace_object_area_visible_set</td> - * <td>workspace_object_area_visible_set_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_object_area_visible_set - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) workspace, EINA_TRUE</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_object_area_visible_set_test_p1) -{ - ck_assert(false); - /* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_object_area_visible_set.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_object_area_visible_set.edj"); - - res = workspace_object_area_visible_set(workspace, EINA_TRUE); - ck_assert_msg(res == EINA_TRUE, "Failed setting visibility for object area"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); - */ -} -END_TEST - -/** - * @addtogroup workspace_object_area_visible_set - * @{ - * <tr> - * <td>workspace_object_area_visible_set</td> - * <td>workspace_object_area_visible_set_test_p2</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_object_area_visible_set(EINA_TRUE) - * @step 2 call workspace_object_area_visible_set(EINA_FALSE) - * @step 3 check returned value - * </td> - * <td>(Evas_Object *) workspace, EINA_TRUE</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_object_area_visible_set_test_p2) -{ - ck_assert(false); - /* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_object_area_visible_set.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_object_area_visible_set.edj"); - - workspace_object_area_visible_set(workspace, EINA_TRUE); - res = workspace_object_area_visible_set(workspace, EINA_FALSE); - ck_assert_msg(res == EINA_TRUE, "Failed setting visibility for object area"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); - */ -} -END_TEST - -/** - * @addtogroup workspace_object_area_visible_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_separate_mode_get.c b/tests/test_ui_workspace/workspace_separate_mode_get.c deleted file mode 100644 index a09055f..0000000 --- a/tests/test_ui_workspace/workspace_separate_mode_get.c +++ /dev/null @@ -1,154 +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_ui_workspace.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_separate_mode_get - * @{ - * ui_workspace - * <TABLE> - * @} - */ - -/** - * @addtogroup workspace_separate_mode_get - * @{ - * <tr> - * <td>workspace_separate_mode_get</td> - * <td>workspace_separate_mode_get_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_separate_mode_set - * @step 2 call workspace_separate_mode_get - * @step 3 check returned value - * </td> - * <td>(Evas_Object *) workspace</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_separate_mode_get_test_p1) -{ -ck_assert(false); -/* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_separate_mode_get.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, ./edj_build/workspace_separate_mode_get.edj"); - - workspace_separate_mode_set(workspace, EINA_TRUE); - res = workspace_separate_mode_get(workspace); - ck_assert_msg(res == EINA_TRUE, "Failed get separate mode for workspace"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); - */ -} -END_TEST - -/** - * @addtogroup workspace_separate_mode_get - * @{ - * <tr> - * <td>workspace_separate_mode_get</td> - * <td>workspace_separate_mode_get_test_p2</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_separate_mode_get - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) workspace</td> - * <td>Returned EINA_FALSE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_separate_mode_get_test_p2) -{ -ck_assert(false); -/* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_separate_mode_get.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_separate_mode_get.edj"); - - res = workspace_separate_mode_get(workspace); - ck_assert_msg(res == EINA_FALSE, "Failed get separate mode for workspace"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); - */ -} -END_TEST - -/** - * @addtogroup workspace_separate_mode_get - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_separate_mode_set.c b/tests/test_ui_workspace/workspace_separate_mode_set.c deleted file mode 100644 index bf3df1f..0000000 --- a/tests/test_ui_workspace/workspace_separate_mode_set.c +++ /dev/null @@ -1,153 +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_ui_workspace.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_separate_mode_set - * @{ - * ui_workspace - * <TABLE> - * @} - */ - -/** - * @addtogroup workspace_separate_mode_set - * @{ - * <tr> - * <td>workspace_separate_mode_set</td> - * <td>workspace_separate_mode_set_test_p1</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_separate_mode_set - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) workspace, EINA_TRUE</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_separate_mode_set_test_p1) -{ -ck_assert(false); -/* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_separate_mode_set.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_separate_mode_set.edj"); - - res = workspace_separate_mode_set(workspace, EINA_TRUE); - ck_assert_msg(res == EINA_TRUE, "Failed set separate mode for workspace"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown();*/ -} -END_TEST - -/** - * @addtogroup workspace_separate_mode_set - * @{ - * <tr> - * <td>workspace_separate_mode_set</td> - * <td>workspace_separate_mode_set_test_p2</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 create workspace object - * @step 5 create style object - * @step 6 set edit object into workspace - * - * @procedure - * @step 1 call workspace_separate_mode_set(EINA_TRUE) - * @step 2 call workspace_separate_mode_set(EINA_FALSE) - * @step 3 check returned value - * </td> - * <td>(Evas_Object *) workspace, EINA_TRUE</td> - * <td>Returned EINA_TRUE</td> - * </tr> - * @} - */ -EFLETE_TEST(workspace_separate_mode_set_test_p2) -{ -ck_assert(false); -/* - Eina_Bool res = EINA_FALSE; - Evas_Object *parent, *workspace; - Style *style = NULL; - Evas *e = NULL; - - elm_init(0, 0); - app_init(); - parent = elm_win_add(NULL, "test", ELM_WIN_BASIC); - workspace = workspace_add(parent, NULL); - e = evas_object_evas_get(parent); - style = wm_style_add("test", "elm/radio/base/test", STYLE, NULL); - style->obj = edje_edit_object_add(e); - edje_object_file_set(style->obj, "./edj_build/workspace_separate_mode_set.edj", - style->full_group_name); - //workspace_edit_object_set(workspace, style, "./edj_build/workspace_separate_mode_set.edj"); - - workspace_separate_mode_set(workspace, EINA_TRUE); - res = workspace_separate_mode_set(workspace, EINA_FALSE); - ck_assert_msg(res == EINA_TRUE, "Failed set separate mode for workspace"); - - wm_style_free(style); - //workspace_edit_object_unset(workspace); - evas_object_del(workspace); - evas_object_del(parent); - app_shutdown(); - elm_shutdown(); - */ -} -END_TEST - -/** - * @addtogroup workspace_separate_mode_set - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_zoom_factor_get.c b/tests/test_ui_workspace/workspace_zoom_factor_get.c deleted file mode 100644 index d470c90..0000000 --- a/tests/test_ui_workspace/workspace_zoom_factor_get.c +++ /dev/null @@ -1,95 +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_ui_workspace.h" -#include "main_window.h" -#include "test_common.h" - -/** - * @addtogroup ui_workspace_test - * @{ - * @addtogroup workspace_zoom_factor_get - * @{ - * ui_workspace - * <TABLE> - * @} - */ - -/** - * @addtogroup workspace_zoom_factor_get - * @{ - * <tr> - * <td>workspace_zoom_factor_get</td> - * <td>workspace_zoom_factor_get_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 Mmap edj file. - * @step 5 create workspace object - * @step 6 create style - * @step 7 load data into created style from edj file - * @step 8 set loaded object into workspace - * @step 9 Set zoom factor equal 1.5 - * - * @procedure - * @step 1 call workspace_zoom_factor_get - * @step 2 check returned value - * </td> - * <td>(Evas_Object *) workspace</td> - * <td>Returned (double) 1.5</td> - * </tr> - * @} - */ -EFLETE_TEST (workspace_zoom_factor_get_test_p) -{ - // Style *style = NULL; -ck_assert(false); - - elm_init(0, 0); - app_init(); - - ui_main_window_add(); - ap.project = setup("workspace_zoom_factor_get_test_p"); -// wm_widgets_list_objects_load(ap.project->widgets, -// evas_object_evas_get(ap.win), ap.project->mmap_file); - //blocks_show(); - //style = wm_style_object_find(ap.project->widgets, "elm/radio/base/def"); - //ui_style_clicked(style); -// workspace_zoom_factor_set(ap.workspace, 1.5); - -// ck_assert_msg(workspace_zoom_factor_get(ap.workspace) == 1.5, "Failed get zoom factor"); - - pm_project_close(ap.project); - ap.project = NULL; - ui_main_window_del(); - app_shutdown(); - teardown("./workspace_zoom_factor_get_test_p"); - elm_shutdown(); -} -END_TEST - -/** - * @addtogroup workspace_zoom_factor_get - * @{ - * </TABLE> - * @} - * @} - */ diff --git a/tests/test_ui_workspace/workspace_zoom_factor_set.c b/tests/test_ui_workspace/workspace_zoom_factor_set.c deleted file mode 100644 index d98b65b..0000000 --- a/tests/test_ui_workspace/workspace_zoom_factor_set.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_ui_workspace.h" -#include "main_window.h" -#include "test_common.h" - -/** - * @addtogroup ui_workspace_test - * @{ - */ - -/** - * @addtogroup workspace_zoom_factor_set - * @{ - * <tr> - * <td>workspace_zoom_factor_set</td> - * <td>workspace_zoom_factor_set_test_p</td> - * <td> - * @precondition - * @step 1 initialize elementary library - * @step 2 load extenstion theme from EFLETE_THEME file - * @step 3 create parent window - * @step 4 Mmap edj file. - * @step 5 create workspace object - * @step 6 create style - * @step 7 load data into created style from edj file - * @step 8 set loaded object into workspace - * - * @procedure - * @step 1 call workspace_zoom_factor_set - * @step 2 check returned value - * </td> - * <td>1.5</td> - * <td>EINA_TRUE returned</td> - * </tr> - * @} - */ -EFLETE_TEST (workspace_zoom_factor_set_test_p) -{ - //Style *style = NULL; -ck_assert(false); - elm_init(0, 0); - app_init(); - - ui_main_window_add(); - ap.project = setup("workspace_zoom_factor_get_test_p"); -// wm_widgets_list_objects_load(ap.project->widgets, -// evas_object_evas_get(ap.win), ap.project->mmap_file); - //blocks_show(); - //style = wm_style_object_find(ap.project->widgets, "elm/radio/base/def"); - //ui_style_clicked(style); - -// ck_assert_msg(workspace_zoom_factor_set(ap.workspace, 1.5), "Failed get zoom factor"); - - pm_project_close(ap.project); - ap.project = NULL; - ui_main_window_del(); - app_shutdown(); - teardown("./workspace_zoom_factor_get_test_p"); - elm_shutdown(); -} -END_TEST - - -/* - * @} - */ --