summaryrefslogtreecommitdiff
path: root/src/tests/elementary/efl_ui_test_image_zoomable.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2019-01-28 14:38:38 -0500
committerStefan Schmidt <s.schmidt@samsung.com>2019-01-30 09:44:32 +0100
commit7628bd76ed083e4c24b23f4ad9e1b7d862d624f8 (patch)
tree2eea702a12ce069587ec501542a5233c045e9811 /src/tests/elementary/efl_ui_test_image_zoomable.c
parent166dafb0d8b75dbf8ffae085c9cb4f385c8e43b8 (diff)
tests: move image_zoomable into efl_ui_suite
ref T6815 Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D7807
Diffstat (limited to 'src/tests/elementary/efl_ui_test_image_zoomable.c')
-rw-r--r--src/tests/elementary/efl_ui_test_image_zoomable.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/tests/elementary/efl_ui_test_image_zoomable.c b/src/tests/elementary/efl_ui_test_image_zoomable.c
new file mode 100644
index 0000000..cbb16ad
--- /dev/null
+++ b/src/tests/elementary/efl_ui_test_image_zoomable.c
@@ -0,0 +1,37 @@
1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h"
3#endif
4#define EFL_NOLEGACY_API_SUPPORT
5
6#include <Efl_Ui.h>
7#include "efl_ui_suite.h"
8
9
10EFL_START_TEST(efl_ui_test_image_zoomable_icon)
11{
12 Evas_Object *win, *img_zoomable;
13 Eina_Bool ok;
14 const char *icon_name;
15
16 win = win_add(NULL, "photocam", EFL_UI_WIN_BASIC);
17
18 img_zoomable = efl_add(EFL_UI_IMAGE_ZOOMABLE_CLASS, win);
19 efl_gfx_entity_visible_set(img_zoomable, EINA_TRUE);
20
21 ok = efl_ui_image_icon_set(img_zoomable, "folder");
22 ck_assert(ok);
23 icon_name = efl_ui_image_icon_get(img_zoomable);
24 ck_assert_str_eq(icon_name, "folder");
25
26 ok = efl_ui_image_icon_set(img_zoomable, "None");
27 ck_assert(ok == 0);
28 icon_name = efl_ui_image_icon_get(img_zoomable);
29 ck_assert(icon_name == NULL);
30
31}
32EFL_END_TEST
33
34void efl_ui_test_image_zoomable(TCase *tc)
35{
36 tcase_add_test(tc, efl_ui_test_image_zoomable_icon);
37}