summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_test_flip.c
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2018-02-14 12:04:24 -0800
committerCedric Bail <cedric@osg.samsung.com>2018-02-14 12:47:40 -0800
commit855c1886b68d898722e5aab5e27a10eba4294655 (patch)
tree2883d92bff48a6aee2e761f057175a8ae0d9214d /src/tests/elementary/elm_test_flip.c
parent274730fc5f7e9e8995554ca02dfe8abd8b45211e (diff)
elementary: fix legacy widget type name for backward compat
Summary: For example, the widget type of elm_button was "Elm_Button". But, the object which is created by elm_button_add() will return its widget type "Efl.Ui.Button_Legacy". It is not legacy name. It should be fixed to return "Elm_Button". I don't know when but eolian start to make class name with ".". So, it should be converted to "_" for all widgets. @fix Test Plan: All test cases are included in this patch. Run "make check" Reviewers: raster, cedric, jpeg, taxi2se Reviewed By: cedric Subscribers: taxi2se, woohyun Differential Revision: https://phab.enlightenment.org/D5782 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
Diffstat (limited to 'src/tests/elementary/elm_test_flip.c')
-rw-r--r--src/tests/elementary/elm_test_flip.c24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/tests/elementary/elm_test_flip.c b/src/tests/elementary/elm_test_flip.c
index e13bfde..604b088 100644
--- a/src/tests/elementary/elm_test_flip.c
+++ b/src/tests/elementary/elm_test_flip.c
@@ -6,6 +6,27 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_flip_legacy_type_check)
10{
11 Evas_Object *win, *flip;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "flip", ELM_WIN_BASIC);
16
17 flip = elm_flip_add(win);
18
19 type = elm_object_widget_type_get(flip);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Flip"));
22
23 type = evas_object_type_get(flip);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_flip"));
26
27 elm_shutdown();
28}
29END_TEST
9 30
10START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
11{ 32{
@@ -26,5 +47,6 @@ END_TEST
26 47
27void elm_test_flip(TCase *tc) 48void elm_test_flip(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_flip_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}