rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=d5e035f80fd81759731c3cdbb3022b8b4f83a8a4

commit d5e035f80fd81759731c3cdbb3022b8b4f83a8a4
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Wed Jan 27 13:59:34 2016 +0000

    UTC: forgotten and removed files
---
 tests/test_image_manager/image_manager_add.c  | 82 +++++++++++++++++++++++++++
 tests/test_image_manager/test_image_manager.c | 39 +++++++++++++
 2 files changed, 121 insertions(+)

diff --git a/tests/test_image_manager/image_manager_add.c 
b/tests/test_image_manager/image_manager_add.c
new file mode 100644
index 0000000..34ff63d
--- /dev/null
+++ b/tests/test_image_manager/image_manager_add.c
@@ -0,0 +1,82 @@
+/**
+ * Edje Theme Editor
+ * Copyright (C) 2013-2014 Samsung Electronics.
+ *
+ * This file is part of Edje Theme Editor.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; If not, see www.gnu.org/licenses/lgpl.html.
+ */
+
+#include "test_image_manager.h"
+#include "test_common.h"
+
+/**
+ * @addtogroup image_manager_test
+ * @{
+ * @addtogroup image_manager_add
+ * @{
+ * image manager
+ * <TABLE>
+ * @}
+ */
+
+/**
+ * @addtogroup image_manager_add
+ * @{
+ * <tr>
+ * <td>image_manager_add</td>
+ * <td>image_manager_add_test_p</td>
+ * <td>
+ * @precondition
+ * @step 1 init elemantary
+ * @step 2 init app
+ * @step 3 create main window
+ * @step 4 load project
+ *
+ * @procedure
+ * @step 1 call image_manager_add
+ * @step 2 check returned value
+ *
+ * </td>
+ * <td>Nothing</td>
+ * <td>Not NULL Pointer returned</td>
+ * </tr>
+ * @}
+ */
+EFLETE_TEST (image_manager_add_test_p)
+{
+   elm_init(0,0);
+
+   app_init();
+   Evas_Object *images;
+   ui_main_window_add();
+   ap.project = setup("image_manager_add_test_p");
+
+   images = image_manager_add();
+   ck_assert_msg(images != NULL,
+                 "cannot create image editor window in SINGLE mode");
+
+   evas_object_del(images);
+   app_shutdown();
+   teardown("image_manager_add_test_p");
+   elm_shutdown();
+}
+END_TEST
+
+/**
+ * @addtogroup image_manager_add
+ * @{
+ * </TABLE>
+ * @}
+ * @}
+ */
diff --git a/tests/test_image_manager/test_image_manager.c 
b/tests/test_image_manager/test_image_manager.c
new file mode 100644
index 0000000..e396165
--- /dev/null
+++ b/tests/test_image_manager/test_image_manager.c
@@ -0,0 +1,39 @@
+/**
+ * Edje Theme Editor
+ * Copyright (C) 2013-2014 Samsung Electronics.
+ *
+ * This file is part of Edje Theme Editor.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; If not, see www.gnu.org/licenses/lgpl.html.
+ */
+
+#include "test_image_manager.h"
+
+Suite* test_suite (void) {
+   Suite *suite = suite_create("test_image_manager");
+   TCase *tcase = tcase_create("TCase");
+   tcase_add_test(tcase, image_manager_add_test_p);
+   suite_add_tcase(suite, tcase);
+   return suite;
+}
+
+int main(void) {
+   int number_failed;
+   Suite *suite = test_suite();
+   SRunner *runner = srunner_create(suite);
+   srunner_set_xml(runner, "test_image_manager.xml");
+   srunner_run_all(runner, CK_VERBOSE);
+   number_failed = srunner_ntests_failed(runner);
+   srunner_free(runner);
+   return number_failed;
+}

-- 


Reply via email to