summaryrefslogtreecommitdiff
path: root/src
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
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')
-rw-r--r--src/lib/elementary/efl_ui_widget.c91
-rw-r--r--src/tests/elementary/elm_test_actionslider.c25
-rw-r--r--src/tests/elementary/elm_test_bg.c23
-rw-r--r--src/tests/elementary/elm_test_box.c25
-rw-r--r--src/tests/elementary/elm_test_bubble.c25
-rw-r--r--src/tests/elementary/elm_test_button.c27
-rw-r--r--src/tests/elementary/elm_test_calendar.c25
-rw-r--r--src/tests/elementary/elm_test_check.c23
-rw-r--r--src/tests/elementary/elm_test_clock.c25
-rw-r--r--src/tests/elementary/elm_test_colorselector.c23
-rw-r--r--src/tests/elementary/elm_test_conformant.c25
-rw-r--r--src/tests/elementary/elm_test_ctxpopup.c25
-rw-r--r--src/tests/elementary/elm_test_datetime.c25
-rw-r--r--src/tests/elementary/elm_test_dayselector.c25
-rw-r--r--src/tests/elementary/elm_test_diskselector.c25
-rw-r--r--src/tests/elementary/elm_test_entry.c23
-rw-r--r--src/tests/elementary/elm_test_fileselector.c22
-rw-r--r--src/tests/elementary/elm_test_fileselector_button.c25
-rw-r--r--src/tests/elementary/elm_test_fileselector_entry.c25
-rw-r--r--src/tests/elementary/elm_test_flip.c24
-rw-r--r--src/tests/elementary/elm_test_flipselector.c24
-rw-r--r--src/tests/elementary/elm_test_frame.c24
-rw-r--r--src/tests/elementary/elm_test_gengrid.c24
-rw-r--r--src/tests/elementary/elm_test_genlist.c22
-rw-r--r--src/tests/elementary/elm_test_glview.c27
-rw-r--r--src/tests/elementary/elm_test_grid.c24
-rw-r--r--src/tests/elementary/elm_test_hover.c24
-rw-r--r--src/tests/elementary/elm_test_hoversel.c24
-rw-r--r--src/tests/elementary/elm_test_icon.c24
-rw-r--r--src/tests/elementary/elm_test_image.c31
-rw-r--r--src/tests/elementary/elm_test_index.c24
-rw-r--r--src/tests/elementary/elm_test_inwin.c24
-rw-r--r--src/tests/elementary/elm_test_label.c24
-rw-r--r--src/tests/elementary/elm_test_layout.c22
-rw-r--r--src/tests/elementary/elm_test_list.c41
-rw-r--r--src/tests/elementary/elm_test_map.c24
-rw-r--r--src/tests/elementary/elm_test_mapbuf.c24
-rw-r--r--src/tests/elementary/elm_test_menu.c24
-rw-r--r--src/tests/elementary/elm_test_multibuttonentry.c24
-rw-r--r--src/tests/elementary/elm_test_naviframe.c24
-rw-r--r--src/tests/elementary/elm_test_notify.c24
-rw-r--r--src/tests/elementary/elm_test_panel.c24
-rw-r--r--src/tests/elementary/elm_test_panes.c24
-rw-r--r--src/tests/elementary/elm_test_photo.c24
-rw-r--r--src/tests/elementary/elm_test_photocam.c22
-rw-r--r--src/tests/elementary/elm_test_player.c24
-rw-r--r--src/tests/elementary/elm_test_plug.c24
-rw-r--r--src/tests/elementary/elm_test_popup.c24
-rw-r--r--src/tests/elementary/elm_test_prefs.c25
-rw-r--r--src/tests/elementary/elm_test_progressbar.c24
-rw-r--r--src/tests/elementary/elm_test_radio.c24
-rw-r--r--src/tests/elementary/elm_test_scroller.c24
-rw-r--r--src/tests/elementary/elm_test_segmentcontrol.c24
-rw-r--r--src/tests/elementary/elm_test_separator.c24
-rw-r--r--src/tests/elementary/elm_test_slider.c24
-rw-r--r--src/tests/elementary/elm_test_slideshow.c24
-rw-r--r--src/tests/elementary/elm_test_spinner.c24
-rw-r--r--src/tests/elementary/elm_test_table.c24
-rw-r--r--src/tests/elementary/elm_test_thumb.c25
-rw-r--r--src/tests/elementary/elm_test_toolbar.c24
-rw-r--r--src/tests/elementary/elm_test_video.c24
-rw-r--r--src/tests/elementary/elm_test_web.c25
-rw-r--r--src/tests/elementary/elm_test_win.c20
63 files changed, 1544 insertions, 64 deletions
diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c
index fbf5646..93fc333 100644
--- a/src/lib/elementary/efl_ui_widget.c
+++ b/src/lib/elementary/efl_ui_widget.c
@@ -76,6 +76,77 @@ struct _Elm_Translate_String_Data
76 Eina_Bool preset : 1; 76 Eina_Bool preset : 1;
77}; 77};
78 78
79/* For keeping backward compatibility (EFL 1.18 or older versions).
80 * Since EFL 1.19 which starts to use eolian_gen2, it does not convert
81 * "." to "_" among the class name. */
82static const char *legacy_type_table[][2] =
83{
84 { "Efl.Ui.Bg_Widget_Legacy", "Elm_Bg" },
85 { "Efl.Ui.Button_Legacy", "Elm_Button" },
86 { "Efl.Ui.Check_Legacy", "Elm_Check" },
87 { "Efl.Ui.Clock_Legacy", "Elm_Datetime" },
88 { "Efl.Ui.Flip_Legacy", "Elm_Flip" },
89 { "Efl.Ui.Frame_Legacy", "Elm_Frame" },
90 { "Efl.Ui.Image_Legacy", "Elm_Image" },
91 { "Efl.Ui.Image_Zoomable_Legacy", "Elm_Photocam" },
92 { "Efl.Ui.Layout_Legacy", "Elm_Layout" },
93 { "Efl.Ui.Multibuttonentry_Legacy", "Elm_Multibuttonentry" },
94 { "Efl.Ui.Panes_Legacy", "Elm_Panes" },
95 { "Efl.Ui.Progressbar_Legacy", "Elm_Progressbar" },
96 { "Efl.Ui.Radio_Legacy", "Elm_Radio" },
97 { "Efl.Ui.Slider_Legacy", "Elm_Slider" },
98 { "Efl.Ui.Video_Legacy", "Elm_Video" },
99 { "Efl.Ui.Win_Legacy", "Elm_Win" },
100 { "Elm.Code_Widget_Legacy", "Elm_Code_Widget" },
101 { "Elm.Ctxpopup", "Elm_Ctxpopup" },
102 { "Elm.Entry", "Elm_Entry" },
103 { "Elm.Colorselector", "Elm_Colorselector" },
104 { "Elm.List", "Elm_List" },
105 { "Elm.Photo", "Elm_Photo" },
106 { "Elm.Actionslider", "Elm_Actionslider" },
107 { "Elm.Box", "Elm_Box" },
108 { "Elm.Table", "Elm_Table" },
109 { "Elm.Thumb", "Elm_Thumb" },
110 { "Elm.Menu", "Elm_Menu" },
111 { "Elm.Icon", "Elm_Icon" },
112 { "Elm.Prefs", "Elm_Prefs" },
113 { "Elm.Map", "Elm_Map" },
114 { "Elm.Glview", "Elm_Glview" },
115 { "Elm.Web", "Elm_Web" },
116 { "Elm.Toolbar", "Elm_Toolbar" },
117 { "Elm.Grid", "Elm_Grid" },
118 { "Elm.Diskselector", "Elm_Diskselector" },
119 { "Elm.Notify", "Elm_Notify" },
120 { "Elm.Mapbuf", "Elm_Mapbuf" },
121 { "Elm.Separator", "Elm_Separator" },
122 { "Elm.Calendar", "Elm_Calendar" },
123 { "Elm.Inwin", "Elm_Inwin" },
124 { "Elm.Gengrid", "Elm_Gengrid" },
125 { "Elm.Scroller", "Elm_Scroller" },
126 { "Elm.Player", "Elm_Player" },
127 { "Elm.Segment_Control", "Elm_Segment_Control" },
128 { "Elm.Fileselector", "Elm_Fileselector" },
129 { "Elm.Fileselector_Button", "Elm_Fileselector_Button" },
130 { "Elm.Fileselector_Entry", "Elm_Fileselector_Entry" },
131 { "Elm.Flipselector", "Elm_Flipselector" },
132 { "Elm.Hoversel", "Elm_Hoversel" },
133 { "Elm.Naviframe", "Elm_Naviframe" },
134 { "Elm.Popup", "Elm_Popup" },
135 { "Elm.Bubble", "Elm_Bubble" },
136 { "Elm.Clock", "Elm_Clock" },
137 { "Elm.Conformant", "Elm_Conformant" },
138 { "Elm.Dayselector", "Elm_Dayselector" },
139 { "Elm.Genlist", "Elm_Genlist" },
140 { "Elm.Hover", "Elm_Hover" },
141 { "Elm.Index", "Elm_Index" },
142 { "Elm.Label", "Elm_Label" },
143 { "Elm.Panel", "Elm_Panel" },
144 { "Elm.Slideshow", "Elm_Slideshow" },
145 { "Elm.Spinner", "Elm_Spinner" },
146 { "Elm.Plug", "Elm_Plug" },
147 { NULL, NULL }
148};
149
79/* local subsystem globals */ 150/* local subsystem globals */
80static inline Eina_Bool 151static inline Eina_Bool
81_elm_widget_is(const Evas_Object *obj) 152_elm_widget_is(const Evas_Object *obj)
@@ -3137,12 +3208,30 @@ elm_widget_is_check(const Evas_Object *obj)
3137 return EINA_FALSE; 3208 return EINA_FALSE;
3138} 3209}
3139 3210
3211/* If you changed a legacy widget's class name,
3212 * please update the "legacy_type_table". */
3140EAPI const char * 3213EAPI const char *
3141elm_widget_type_get(const Evas_Object *obj) 3214elm_widget_type_get(const Evas_Object *obj)
3142{ 3215{
3216 const char *ret;
3217 int i;
3218
3143 API_ENTRY return NULL; 3219 API_ENTRY return NULL;
3144 3220
3145 return efl_class_name_get(efl_class_get(obj)); 3221 ret = efl_class_name_get(efl_class_get(obj));
3222
3223 /* If the given widget is created for legacy,
3224 * convert type name to legacy. */
3225 if (elm_widget_is_legacy(obj))
3226 {
3227 for (i = 0; legacy_type_table[i][0] ; i++)
3228 {
3229 if (eina_streq(ret, legacy_type_table[i][0]))
3230 return legacy_type_table[i][1];
3231 }
3232 }
3233
3234 return ret;
3146} 3235}
3147 3236
3148EAPI Eina_Bool 3237EAPI Eina_Bool
diff --git a/src/tests/elementary/elm_test_actionslider.c b/src/tests/elementary/elm_test_actionslider.c
index c84bfba..aaeeb13 100644
--- a/src/tests/elementary/elm_test_actionslider.c
+++ b/src/tests/elementary/elm_test_actionslider.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_actionslider_legacy_type_check)
10{
11 Evas_Object *win, *actionslider;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "actionslider", ELM_WIN_BASIC);
16
17 actionslider = elm_actionslider_add(win);
18
19 type = elm_object_widget_type_get(actionslider);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Actionslider"));
22
23 type = evas_object_type_get(actionslider);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_actionslider"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *actionslider; 33 Evas_Object *win, *actionslider;
@@ -25,5 +47,6 @@ END_TEST
25 47
26void elm_test_actionslider(TCase *tc) 48void elm_test_actionslider(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_actionslider_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
diff --git a/src/tests/elementary/elm_test_bg.c b/src/tests/elementary/elm_test_bg.c
index 8c2047d..6f57037 100644
--- a/src/tests/elementary/elm_test_bg.c
+++ b/src/tests/elementary/elm_test_bg.c
@@ -5,6 +5,29 @@
5#include <Elementary.h> 5#include <Elementary.h>
6#include "elm_suite.h" 6#include "elm_suite.h"
7 7
8START_TEST (elm_bg_legacy_type_check)
9{
10 Evas_Object *win, *bg;
11 const char *type;
12
13 elm_init(1, NULL);
14 win = elm_win_add(NULL, "bg", ELM_WIN_BASIC);
15
16 bg = elm_bg_add(win);
17
18 type = elm_object_widget_type_get(bg);
19 ck_assert(type != NULL);
20 ck_assert(!strcmp(type, "Elm_Bg"));
21
22 type = evas_object_type_get(bg);
23 ck_assert(type != NULL);
24 ck_assert(!strcmp(type, "elm_bg"));
25
26 elm_shutdown();
27}
28END_TEST
29
8void elm_test_bg(TCase *tc EINA_UNUSED) 30void elm_test_bg(TCase *tc EINA_UNUSED)
9{ 31{
32 tcase_add_test(tc, elm_bg_legacy_type_check);
10} 33}
diff --git a/src/tests/elementary/elm_test_box.c b/src/tests/elementary/elm_test_box.c
index 9e02995..02df277 100644
--- a/src/tests/elementary/elm_test_box.c
+++ b/src/tests/elementary/elm_test_box.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_box_legacy_type_check)
10{
11 Evas_Object *win, *box;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "box", ELM_WIN_BASIC);
16
17 box = elm_box_add(win);
18
19 type = elm_object_widget_type_get(box);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Box"));
22
23 type = evas_object_type_get(box);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_box"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *box; 33 Evas_Object *win, *box;
@@ -25,5 +47,6 @@ END_TEST
25 47
26void elm_test_box(TCase *tc) 48void elm_test_box(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_box_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
diff --git a/src/tests/elementary/elm_test_bubble.c b/src/tests/elementary/elm_test_bubble.c
index 490bef0..fb92261 100644
--- a/src/tests/elementary/elm_test_bubble.c
+++ b/src/tests/elementary/elm_test_bubble.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_bubble_legacy_type_check)
10{
11 Evas_Object *win, *bubble;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "bubble", ELM_WIN_BASIC);
16
17 bubble = elm_bubble_add(win);
18
19 type = elm_object_widget_type_get(bubble);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Bubble"));
22
23 type = evas_object_type_get(bubble);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_bubble"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *bubble; 33 Evas_Object *win, *bubble;
@@ -25,6 +47,7 @@ END_TEST
25 47
26void elm_test_bubble(TCase *tc) 48void elm_test_bubble(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_bubble_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
30 53
diff --git a/src/tests/elementary/elm_test_button.c b/src/tests/elementary/elm_test_button.c
index 3a23fe8..b5937e1 100644
--- a/src/tests/elementary/elm_test_button.c
+++ b/src/tests/elementary/elm_test_button.c
@@ -8,6 +8,28 @@
8#include <Elementary.h> 8#include <Elementary.h>
9#include "elm_suite.h" 9#include "elm_suite.h"
10 10
11START_TEST (elm_button_legacy_type_check)
12{
13 Evas_Object *win, *button;
14 const char *type;
15
16 elm_init(1, NULL);
17 win = elm_win_add(NULL, "button", ELM_WIN_BASIC);
18
19 button = elm_button_add(win);
20
21 type = elm_object_widget_type_get(button);
22 ck_assert(type != NULL);
23 ck_assert(!strcmp(type, "Elm_Button"));
24
25 type = evas_object_type_get(button);
26 ck_assert(type != NULL);
27 ck_assert(!strcmp(type, "elm_button"));
28
29 elm_shutdown();
30}
31END_TEST
32
11START_TEST (elm_atspi_role_get) 33START_TEST (elm_atspi_role_get)
12{ 34{
13 Evas_Object *win, *button; 35 Evas_Object *win, *button;
@@ -44,6 +66,7 @@ END_TEST
44 66
45void elm_test_button(TCase *tc) 67void elm_test_button(TCase *tc)
46{ 68{
47 tcase_add_test(tc, elm_atspi_role_get); 69 tcase_add_test(tc, elm_button_legacy_type_check);
48 tcase_add_test(tc, elm_atspi_interfaces_check); 70 tcase_add_test(tc, elm_atspi_role_get);
71 tcase_add_test(tc, elm_atspi_interfaces_check);
49} 72}
diff --git a/src/tests/elementary/elm_test_calendar.c b/src/tests/elementary/elm_test_calendar.c
index 6cc3b5b..5b7f428 100644
--- a/src/tests/elementary/elm_test_calendar.c
+++ b/src/tests/elementary/elm_test_calendar.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_calendar_legacy_type_check)
10{
11 Evas_Object *win, *calendar;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "calendar", ELM_WIN_BASIC);
16
17 calendar = elm_calendar_add(win);
18
19 type = elm_object_widget_type_get(calendar);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Calendar"));
22
23 type = evas_object_type_get(calendar);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_calendar"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *calendar; 33 Evas_Object *win, *calendar;
@@ -25,5 +47,6 @@ END_TEST
25 47
26void elm_test_calendar(TCase *tc) 48void elm_test_calendar(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_calendar_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
diff --git a/src/tests/elementary/elm_test_check.c b/src/tests/elementary/elm_test_check.c
index 2d1c06e..25bd310 100644
--- a/src/tests/elementary/elm_test_check.c
+++ b/src/tests/elementary/elm_test_check.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_check_legacy_type_check)
10{
11 Evas_Object *win, *check;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "check", ELM_WIN_BASIC);
16
17 check = elm_check_add(win);
18
19 type = elm_object_widget_type_get(check);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Check"));
22
23 type = evas_object_type_get(check);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_check"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_check_onoff_text) 31START_TEST (elm_check_onoff_text)
10{ 32{
11 Evas_Object *win, *check; 33 Evas_Object *win, *check;
@@ -69,6 +91,7 @@ END_TEST
69 91
70void elm_test_check(TCase *tc) 92void elm_test_check(TCase *tc)
71{ 93{
94 tcase_add_test(tc, elm_check_legacy_type_check);
72 tcase_add_test(tc, elm_check_onoff_text); 95 tcase_add_test(tc, elm_check_onoff_text);
73 tcase_add_test(tc, elm_check_state); 96 tcase_add_test(tc, elm_check_state);
74 tcase_add_test(tc, elm_atspi_role_get); 97 tcase_add_test(tc, elm_atspi_role_get);
diff --git a/src/tests/elementary/elm_test_clock.c b/src/tests/elementary/elm_test_clock.c
index f391e21..1467e6b 100644
--- a/src/tests/elementary/elm_test_clock.c
+++ b/src/tests/elementary/elm_test_clock.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_clock_legacy_type_check)
10{
11 Evas_Object *win, *clock;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "clock", ELM_WIN_BASIC);
16
17 clock = elm_clock_add(win);
18
19 type = elm_object_widget_type_get(clock);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Clock"));
22
23 type = evas_object_type_get(clock);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_clock"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *clk; 33 Evas_Object *win, *clk;
@@ -25,6 +47,7 @@ END_TEST
25 47
26void elm_test_clock(TCase *tc) 48void elm_test_clock(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_clock_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
30 53
diff --git a/src/tests/elementary/elm_test_colorselector.c b/src/tests/elementary/elm_test_colorselector.c
index 0703583..2cb8533 100644
--- a/src/tests/elementary/elm_test_colorselector.c
+++ b/src/tests/elementary/elm_test_colorselector.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_colorselector_legacy_type_check)
10{
11 Evas_Object *win, *colorselector;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "colorselector", ELM_WIN_BASIC);
16
17 colorselector = elm_colorselector_add(win);
18
19 type = elm_object_widget_type_get(colorselector);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Colorselector"));
22
23 type = evas_object_type_get(colorselector);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_colorselector"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_colorselector_palette) 31START_TEST (elm_colorselector_palette)
10{ 32{
11 Evas_Object *win, *c; 33 Evas_Object *win, *c;
@@ -52,6 +74,7 @@ END_TEST
52 74
53void elm_test_colorselector(TCase *tc) 75void elm_test_colorselector(TCase *tc)
54{ 76{
77 tcase_add_test(tc, elm_colorselector_legacy_type_check);
55 tcase_add_test(tc, elm_colorselector_palette); 78 tcase_add_test(tc, elm_colorselector_palette);
56 tcase_add_test(tc, elm_atspi_role_get); 79 tcase_add_test(tc, elm_atspi_role_get);
57} 80}
diff --git a/src/tests/elementary/elm_test_conformant.c b/src/tests/elementary/elm_test_conformant.c
index fb8d5ce..b13f08f 100644
--- a/src/tests/elementary/elm_test_conformant.c
+++ b/src/tests/elementary/elm_test_conformant.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_conformant_legacy_type_check)
10{
11 Evas_Object *win, *conformant;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "conformant", ELM_WIN_BASIC);
16
17 conformant = elm_conformant_add(win);
18
19 type = elm_object_widget_type_get(conformant);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Conformant"));
22
23 type = evas_object_type_get(conformant);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_conformant"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *conformant; 33 Evas_Object *win, *conformant;
@@ -25,5 +47,6 @@ END_TEST
25 47
26void elm_test_conformant(TCase *tc) 48void elm_test_conformant(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_conformant_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
diff --git a/src/tests/elementary/elm_test_ctxpopup.c b/src/tests/elementary/elm_test_ctxpopup.c
index 87dca0a..7515ac0 100644
--- a/src/tests/elementary/elm_test_ctxpopup.c
+++ b/src/tests/elementary/elm_test_ctxpopup.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_ctxpopup_legacy_type_check)
10{
11 Evas_Object *win, *ctxpopup;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "ctxpopup", ELM_WIN_BASIC);
16
17 ctxpopup = elm_ctxpopup_add(win);
18
19 type = elm_object_widget_type_get(ctxpopup);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Ctxpopup"));
22
23 type = evas_object_type_get(ctxpopup);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_ctxpopup"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *ctxpopup; 33 Evas_Object *win, *ctxpopup;
@@ -25,5 +47,6 @@ END_TEST
25 47
26void elm_test_ctxpopup(TCase *tc) 48void elm_test_ctxpopup(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_ctxpopup_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
diff --git a/src/tests/elementary/elm_test_datetime.c b/src/tests/elementary/elm_test_datetime.c
index 881841c..5914efc 100644
--- a/src/tests/elementary/elm_test_datetime.c
+++ b/src/tests/elementary/elm_test_datetime.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_datetime_legacy_type_check)
10{
11 Evas_Object *win, *datetime;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "datetime", ELM_WIN_BASIC);
16
17 datetime = elm_datetime_add(win);
18
19 type = elm_object_widget_type_get(datetime);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Datetime"));
22
23 type = evas_object_type_get(datetime);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_datetime"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *datetime; 33 Evas_Object *win, *datetime;
@@ -25,5 +47,6 @@ END_TEST
25 47
26void elm_test_datetime(TCase *tc) 48void elm_test_datetime(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_datetime_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
diff --git a/src/tests/elementary/elm_test_dayselector.c b/src/tests/elementary/elm_test_dayselector.c
index ae75efc..fc30ef1 100644
--- a/src/tests/elementary/elm_test_dayselector.c
+++ b/src/tests/elementary/elm_test_dayselector.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_dayselector_legacy_type_check)
10{
11 Evas_Object *win, *dayselector;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "dayselector", ELM_WIN_BASIC);
16
17 dayselector = elm_dayselector_add(win);
18
19 type = elm_object_widget_type_get(dayselector);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Dayselector"));
22
23 type = evas_object_type_get(dayselector);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_dayselector"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *dayselector; 33 Evas_Object *win, *dayselector;
@@ -25,6 +47,7 @@ END_TEST
25 47
26void elm_test_dayselector(TCase *tc) 48void elm_test_dayselector(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_dayselector_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
30 53
diff --git a/src/tests/elementary/elm_test_diskselector.c b/src/tests/elementary/elm_test_diskselector.c
index 15052bc..0615e81 100644
--- a/src/tests/elementary/elm_test_diskselector.c
+++ b/src/tests/elementary/elm_test_diskselector.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_diskselector_legacy_type_check)
10{
11 Evas_Object *win, *diskselector;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "diskselector", ELM_WIN_BASIC);
16
17 diskselector = elm_diskselector_add(win);
18
19 type = elm_object_widget_type_get(diskselector);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Diskselector"));
22
23 type = evas_object_type_get(diskselector);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_diskselector"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *diskselector; 33 Evas_Object *win, *diskselector;
@@ -25,5 +47,6 @@ END_TEST
25 47
26void elm_test_diskselector(TCase *tc) 48void elm_test_diskselector(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_diskselector_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
diff --git a/src/tests/elementary/elm_test_entry.c b/src/tests/elementary/elm_test_entry.c
index 07adf12..05aa0d3 100644
--- a/src/tests/elementary/elm_test_entry.c
+++ b/src/tests/elementary/elm_test_entry.c
@@ -8,6 +8,28 @@
8#include <Elementary.h> 8#include <Elementary.h>
9#include "elm_suite.h" 9#include "elm_suite.h"
10 10
11START_TEST (elm_entry_legacy_type_check)
12{
13 Evas_Object *win, *entry;
14 const char *type;
15
16 elm_init(1, NULL);
17 win = elm_win_add(NULL, "entry", ELM_WIN_BASIC);
18
19 entry = elm_entry_add(win);
20
21 type = elm_object_widget_type_get(entry);
22 ck_assert(type != NULL);
23 ck_assert(!strcmp(type, "Elm_Entry"));
24
25 type = evas_object_type_get(entry);
26 ck_assert(type != NULL);
27 ck_assert(!strcmp(type, "elm_entry"));
28
29 elm_shutdown();
30}
31END_TEST
32
11START_TEST (elm_entry_del) 33START_TEST (elm_entry_del)
12{ 34{
13 Evas_Object *win, *entry; 35 Evas_Object *win, *entry;
@@ -397,6 +419,7 @@ END_TEST
397 419
398void elm_test_entry(TCase *tc) 420void elm_test_entry(TCase *tc)
399{ 421{
422 tcase_add_test(tc, elm_entry_legacy_type_check);
400 tcase_add_test(tc, elm_entry_del); 423 tcase_add_test(tc, elm_entry_del);
401 tcase_add_test(tc, elm_entry_signal_callback); 424 tcase_add_test(tc, elm_entry_signal_callback);
402 tcase_add_test(tc, elm_entry_atspi_text_char_get); 425 tcase_add_test(tc, elm_entry_atspi_text_char_get);
diff --git a/src/tests/elementary/elm_test_fileselector.c b/src/tests/elementary/elm_test_fileselector.c
index da2738d..c96e8b0 100644
--- a/src/tests/elementary/elm_test_fileselector.c
+++ b/src/tests/elementary/elm_test_fileselector.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_fileselector_legacy_type_check)
10{
11 Evas_Object *win, *fileselector;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "fileselector", ELM_WIN_BASIC);
16
17 fileselector = elm_fileselector_add(win);
18
19 type = elm_object_widget_type_get(fileselector);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Fileselector"));
22
23 type = evas_object_type_get(fileselector);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_fileselector"));
26
27 elm_shutdown();
28}
29END_TEST
9 30
10START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
11{ 32{
@@ -87,6 +108,7 @@ END_TEST
87 108
88void elm_test_fileselector(TCase *tc) 109void elm_test_fileselector(TCase *tc)
89{ 110{
111 tcase_add_test(tc, elm_fileselector_legacy_type_check);
90 tcase_add_test(tc, elm_atspi_role_get); 112 tcase_add_test(tc, elm_atspi_role_get);
91 tcase_add_test(tc, elm_fileselector_selected); 113 tcase_add_test(tc, elm_fileselector_selected);
92} 114}
diff --git a/src/tests/elementary/elm_test_fileselector_button.c b/src/tests/elementary/elm_test_fileselector_button.c
index aa6e12f..4847384 100644
--- a/src/tests/elementary/elm_test_fileselector_button.c
+++ b/src/tests/elementary/elm_test_fileselector_button.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_fileselector_button_legacy_type_check)
10{
11 Evas_Object *win, *fs_button;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "fileselector_button", ELM_WIN_BASIC);
16
17 fs_button = elm_fileselector_button_add(win);
18
19 type = elm_object_widget_type_get(fs_button);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Fileselector_Button"));
22
23 type = evas_object_type_get(fs_button);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_fileselector_button"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *fs_button; 33 Evas_Object *win, *fs_button;
@@ -25,5 +47,6 @@ END_TEST
25 47
26void elm_test_fileselector_button(TCase *tc) 48void elm_test_fileselector_button(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_fileselector_button_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
diff --git a/src/tests/elementary/elm_test_fileselector_entry.c b/src/tests/elementary/elm_test_fileselector_entry.c
index fce9d3d..dd2400c 100644
--- a/src/tests/elementary/elm_test_fileselector_entry.c
+++ b/src/tests/elementary/elm_test_fileselector_entry.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_fileselector_entry_legacy_type_check)
10{
11 Evas_Object *win, *fileselector_entry;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "fileselector_entry", ELM_WIN_BASIC);
16
17 fileselector_entry = elm_fileselector_entry_add(win);
18
19 type = elm_object_widget_type_get(fileselector_entry);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Fileselector_Entry"));
22
23 type = evas_object_type_get(fileselector_entry);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_fileselector_entry"));
26
27 elm_shutdown();
28}
29END_TEST
30
9START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
10{ 32{
11 Evas_Object *win, *fs_entry; 33 Evas_Object *win, *fs_entry;
@@ -25,5 +47,6 @@ END_TEST
25 47
26void elm_test_fileselector_entry(TCase *tc) 48void elm_test_fileselector_entry(TCase *tc)
27{ 49{
28 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_fileselector_entry_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
29} 52}
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}
diff --git a/src/tests/elementary/elm_test_flipselector.c b/src/tests/elementary/elm_test_flipselector.c
index 4268929..53d514e 100644
--- a/src/tests/elementary/elm_test_flipselector.c
+++ b/src/tests/elementary/elm_test_flipselector.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_flipselector_legacy_type_check)
10{
11 Evas_Object *win, *flipselector;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "flipselector", ELM_WIN_BASIC);
16
17 flipselector = elm_flipselector_add(win);
18
19 type = elm_object_widget_type_get(flipselector);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Flipselector"));
22
23 type = evas_object_type_get(flipselector);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_flipselector"));
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_flipselector(TCase *tc) 48void elm_test_flipselector(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_flipselector_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_frame.c b/src/tests/elementary/elm_test_frame.c
index 4c90e9c..bf1efc7 100644
--- a/src/tests/elementary/elm_test_frame.c
+++ b/src/tests/elementary/elm_test_frame.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_frame_legacy_type_check)
10{
11 Evas_Object *win, *frame;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "frame", ELM_WIN_BASIC);
16
17 frame = elm_frame_add(win);
18
19 type = elm_object_widget_type_get(frame);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Frame"));
22
23 type = evas_object_type_get(frame);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_frame"));
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_frame(TCase *tc) 48void elm_test_frame(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_frame_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_gengrid.c b/src/tests/elementary/elm_test_gengrid.c
index 76b199a..69d4b21 100644
--- a/src/tests/elementary/elm_test_gengrid.c
+++ b/src/tests/elementary/elm_test_gengrid.c
@@ -7,6 +7,27 @@
7#include "elm_suite.h" 7#include "elm_suite.h"
8#include "elm_test_helper.h" 8#include "elm_test_helper.h"
9 9
10START_TEST (elm_gengrid_legacy_type_check)
11{
12 Evas_Object *win, *gengrid;
13 const char *type;
14
15 elm_init(1, NULL);
16 win = elm_win_add(NULL, "gengrid", ELM_WIN_BASIC);
17
18 gengrid = elm_gengrid_add(win);
19
20 type = elm_object_widget_type_get(gengrid);
21 ck_assert(type != NULL);
22 ck_assert(!strcmp(type, "Elm_Gengrid"));
23
24 type = evas_object_type_get(gengrid);
25 ck_assert(type != NULL);
26 ck_assert(!strcmp(type, "elm_gengrid"));
27
28 elm_shutdown();
29}
30END_TEST
10 31
11START_TEST (elm_atspi_role_get) 32START_TEST (elm_atspi_role_get)
12{ 33{
@@ -33,7 +54,7 @@ static Evas_Object *content;
33static Evas_Object * 54static Evas_Object *
34gl_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part EINA_UNUSED) 55gl_content_get(void *data EINA_UNUSED, Evas_Object *obj, const char *part EINA_UNUSED)
35{ 56{
36 content = elm_button_add(obj); 57 content = elm_gengrid_add(obj);
37 evas_object_show(content); 58 evas_object_show(content);
38 return content; 59 return content;
39} 60}
@@ -76,6 +97,7 @@ END_TEST
76 97
77void elm_test_gengrid(TCase *tc) 98void elm_test_gengrid(TCase *tc)
78{ 99{
100 tcase_add_test(tc, elm_gengrid_legacy_type_check);
79 tcase_add_test(tc, elm_atspi_role_get); 101 tcase_add_test(tc, elm_atspi_role_get);
80#if 0 102#if 0
81 tcase_add_test(tc, elm_atspi_children_parent); 103 tcase_add_test(tc, elm_atspi_children_parent);
diff --git a/src/tests/elementary/elm_test_genlist.c b/src/tests/elementary/elm_test_genlist.c
index 4f53014..d7fd2f1 100644
--- a/src/tests/elementary/elm_test_genlist.c
+++ b/src/tests/elementary/elm_test_genlist.c
@@ -14,6 +14,27 @@ static int counter;
14static Efl_Access_Event_Children_Changed_Data ev_data; 14static Efl_Access_Event_Children_Changed_Data ev_data;
15Evas_Object *content; 15Evas_Object *content;
16 16
17START_TEST (elm_genlist_legacy_type_check)
18{
19 Evas_Object *win, *genlist;
20 const char *type;
21
22 elm_init(1, NULL);
23 win = elm_win_add(NULL, "genlist", ELM_WIN_BASIC);
24
25 genlist = elm_genlist_add(win);
26
27 type = elm_object_widget_type_get(genlist);
28 ck_assert(type != NULL);
29 ck_assert(!strcmp(type, "Elm_Genlist"));
30
31 type = evas_object_type_get(genlist);
32 ck_assert(type != NULL);
33 ck_assert(!strcmp(type, "elm_genlist"));
34
35 elm_shutdown();
36}
37END_TEST
17 38
18void test_init(void) 39void test_init(void)
19{ 40{
@@ -180,6 +201,7 @@ END_TEST
180 201
181void elm_test_genlist(TCase *tc) 202void elm_test_genlist(TCase *tc)
182{ 203{
204 tcase_add_test(tc, elm_genlist_legacy_type_check);
183 tcase_add_test(tc, elm_atspi_role_get); 205 tcase_add_test(tc, elm_atspi_role_get);
184 tcase_add_test(tc, elm_atspi_children_get1); 206 tcase_add_test(tc, elm_atspi_children_get1);
185 tcase_add_test(tc, elm_atspi_children_get2); 207 tcase_add_test(tc, elm_atspi_children_get2);
diff --git a/src/tests/elementary/elm_test_glview.c b/src/tests/elementary/elm_test_glview.c
index 79849d8..d996f1c 100644
--- a/src/tests/elementary/elm_test_glview.c
+++ b/src/tests/elementary/elm_test_glview.c
@@ -6,6 +6,30 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_glview_legacy_type_check)
10{
11 Evas_Object *win, *glview;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "glview", ELM_WIN_BASIC);
16
17 glview = elm_glview_add(win);
18
19 if (glview)
20 {
21 type = elm_object_widget_type_get(glview);
22 ck_assert(type != NULL);
23 ck_assert(!strcmp(type, "Elm_Glview"));
24
25 type = evas_object_type_get(glview);
26 ck_assert(type != NULL);
27 ck_assert(!strcmp(type, "elm_glview"));
28 }
29
30 elm_shutdown();
31}
32END_TEST
9 33
10START_TEST (elm_atspi_role_get) 34START_TEST (elm_atspi_role_get)
11{ 35{
@@ -30,5 +54,6 @@ END_TEST
30 54
31void elm_test_glview(TCase *tc) 55void elm_test_glview(TCase *tc)
32{ 56{
33 tcase_add_test(tc, elm_atspi_role_get); 57 tcase_add_test(tc, elm_glview_legacy_type_check);
58 tcase_add_test(tc, elm_atspi_role_get);
34} 59}
diff --git a/src/tests/elementary/elm_test_grid.c b/src/tests/elementary/elm_test_grid.c
index e41f8b1..3e95fca 100644
--- a/src/tests/elementary/elm_test_grid.c
+++ b/src/tests/elementary/elm_test_grid.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_grid_legacy_type_check)
10{
11 Evas_Object *win, *grid;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "grid", ELM_WIN_BASIC);
16
17 grid = elm_grid_add(win);
18
19 type = elm_object_widget_type_get(grid);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Grid"));
22
23 type = evas_object_type_get(grid);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_grid"));
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_grid(TCase *tc) 48void elm_test_grid(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_grid_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_hover.c b/src/tests/elementary/elm_test_hover.c
index 5b048ed..d6ce4a4 100644
--- a/src/tests/elementary/elm_test_hover.c
+++ b/src/tests/elementary/elm_test_hover.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_hover_legacy_type_check)
10{
11 Evas_Object *win, *hover;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "hover", ELM_WIN_BASIC);
16
17 hover = elm_hover_add(win);
18
19 type = elm_object_widget_type_get(hover);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Hover"));
22
23 type = evas_object_type_get(hover);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_hover"));
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_hover(TCase *tc) 48void elm_test_hover(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_hover_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_hoversel.c b/src/tests/elementary/elm_test_hoversel.c
index 8c2ecc7..0514811 100644
--- a/src/tests/elementary/elm_test_hoversel.c
+++ b/src/tests/elementary/elm_test_hoversel.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_hoversel_legacy_type_check)
10{
11 Evas_Object *win, *hoversel;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "hoversel", ELM_WIN_BASIC);
16
17 hoversel = elm_hoversel_add(win);
18
19 type = elm_object_widget_type_get(hoversel);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Hoversel"));
22
23 type = evas_object_type_get(hoversel);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_hoversel"));
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_hoversel(TCase *tc) 48void elm_test_hoversel(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_hoversel_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_icon.c b/src/tests/elementary/elm_test_icon.c
index 2b21506..ca53a47 100644
--- a/src/tests/elementary/elm_test_icon.c
+++ b/src/tests/elementary/elm_test_icon.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_icon_legacy_type_check)
10{
11 Evas_Object *win, *icon;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "icon", ELM_WIN_BASIC);
16
17 icon = elm_icon_add(win);
18
19 type = elm_object_widget_type_get(icon);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Icon"));
22
23 type = evas_object_type_get(icon);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_icon"));
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_icon(TCase *tc) 48void elm_test_icon(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_icon_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_image.c b/src/tests/elementary/elm_test_image.c
index 39f5107..25cfccf 100644
--- a/src/tests/elementary/elm_test_image.c
+++ b/src/tests/elementary/elm_test_image.c
@@ -17,6 +17,28 @@ struct _Test_Data
17 int success; 17 int success;
18}; 18};
19 19
20START_TEST (elm_image_legacy_type_check)
21{
22 Evas_Object *win, *image;
23 const char *type;
24
25 elm_init(1, NULL);
26 win = elm_win_add(NULL, "image", ELM_WIN_BASIC);
27
28 image = elm_image_add(win);
29
30 type = elm_object_widget_type_get(image);
31 ck_assert(type != NULL);
32 ck_assert(!strcmp(type, "Elm_Image"));
33
34 type = evas_object_type_get(image);
35 ck_assert(type != NULL);
36 ck_assert(!strcmp(type, "elm_image"));
37
38 elm_shutdown();
39}
40END_TEST
41
20START_TEST (elm_atspi_role_get) 42START_TEST (elm_atspi_role_get)
21{ 43{
22 Evas_Object *win, *image; 44 Evas_Object *win, *image;
@@ -205,8 +227,9 @@ END_TEST
205 227
206void elm_test_image(TCase *tc) 228void elm_test_image(TCase *tc)
207{ 229{
208 tcase_add_test(tc, elm_atspi_role_get); 230 tcase_add_test(tc, elm_image_legacy_type_check);
209 tcase_add_test(tc, elm_image_async_path); 231 tcase_add_test(tc, elm_atspi_role_get);
210 tcase_add_test(tc, elm_image_async_mmap); 232 tcase_add_test(tc, elm_image_async_path);
211 tcase_add_test(tc, efl_ui_image_icon); 233 tcase_add_test(tc, elm_image_async_mmap);
234 tcase_add_test(tc, efl_ui_image_icon);
212} 235}
diff --git a/src/tests/elementary/elm_test_index.c b/src/tests/elementary/elm_test_index.c
index 1de056b..0272412 100644
--- a/src/tests/elementary/elm_test_index.c
+++ b/src/tests/elementary/elm_test_index.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_index_legacy_type_check)
10{
11 Evas_Object *win, *index;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "index", ELM_WIN_BASIC);
16
17 index = elm_index_add(win);
18
19 type = elm_object_widget_type_get(index);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Index"));
22
23 type = evas_object_type_get(index);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_index"));
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_index(TCase *tc) 48void elm_test_index(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_index_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_inwin.c b/src/tests/elementary/elm_test_inwin.c
index e049484..d62e7c2 100644
--- a/src/tests/elementary/elm_test_inwin.c
+++ b/src/tests/elementary/elm_test_inwin.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_inwin_legacy_type_check)
10{
11 Evas_Object *win, *inwin;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "inwin", ELM_WIN_BASIC);
16
17 inwin = elm_win_inwin_add(win);
18
19 type = elm_object_widget_type_get(inwin);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Inwin"));
22
23 type = evas_object_type_get(inwin);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_inwin"));
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_inwin(TCase *tc) 48void elm_test_inwin(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_inwin_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_label.c b/src/tests/elementary/elm_test_label.c
index 75b27ea..10b5c7d 100644
--- a/src/tests/elementary/elm_test_label.c
+++ b/src/tests/elementary/elm_test_label.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_label_legacy_type_check)
10{
11 Evas_Object *win, *label;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "label", ELM_WIN_BASIC);
16
17 label = elm_label_add(win);
18
19 type = elm_object_widget_type_get(label);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Label"));
22
23 type = evas_object_type_get(label);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_label"));
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_label(TCase *tc) 48void elm_test_label(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_label_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_layout.c b/src/tests/elementary/elm_test_layout.c
index dc506e4..dc6ec03 100644
--- a/src/tests/elementary/elm_test_layout.c
+++ b/src/tests/elementary/elm_test_layout.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_layout_legacy_type_check)
10{
11 Evas_Object *win, *layout;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "layout", ELM_WIN_BASIC);
16
17 layout = elm_layout_add(win);
18
19 type = elm_object_widget_type_get(layout);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Layout"));
22
23 type = evas_object_type_get(layout);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_layout"));
26
27 elm_shutdown();
28}
29END_TEST
9 30
10START_TEST(elm_atspi_role_get) 31START_TEST(elm_atspi_role_get)
11{ 32{
@@ -94,6 +115,7 @@ END_TEST
94 115
95void elm_test_layout(TCase *tc) 116void elm_test_layout(TCase *tc)
96{ 117{
118 tcase_add_test(tc, elm_layout_legacy_type_check);
97 tcase_add_test(tc, elm_atspi_role_get); 119 tcase_add_test(tc, elm_atspi_role_get);
98 tcase_add_test(tc, elm_layout_swallows); 120 tcase_add_test(tc, elm_layout_swallows);
99 tcase_add_test(tc, elm_layout_model_connect); 121 tcase_add_test(tc, elm_layout_model_connect);
diff --git a/src/tests/elementary/elm_test_list.c b/src/tests/elementary/elm_test_list.c
index 24ffcdc..0c5f5c4 100644
--- a/src/tests/elementary/elm_test_list.c
+++ b/src/tests/elementary/elm_test_list.c
@@ -8,6 +8,28 @@
8#include <Elementary.h> 8#include <Elementary.h>
9#include "elm_suite.h" 9#include "elm_suite.h"
10 10
11START_TEST (elm_list_legacy_type_check)
12{
13 Evas_Object *win, *list;
14 const char *type;
15
16 elm_init(1, NULL);
17 win = elm_win_add(NULL, "list", ELM_WIN_BASIC);
18
19 list = elm_list_add(win);
20
21 type = elm_object_widget_type_get(list);
22 ck_assert(type != NULL);
23 ck_assert(!strcmp(type, "Elm_List"));
24
25 type = evas_object_type_get(list);
26 ck_assert(type != NULL);
27 ck_assert(!strcmp(type, "elm_list"));
28
29 elm_shutdown();
30}
31END_TEST
32
11#if 0 33#if 0
12// Skip following tests until Elm_Widget_Item will migrate to Eo infrastructure 34// Skip following tests until Elm_Widget_Item will migrate to Eo infrastructure
13// and following features can be implemented 35// and following features can be implemented
@@ -233,15 +255,16 @@ END_TEST
233 255
234void elm_test_list(TCase *tc) 256void elm_test_list(TCase *tc)
235{ 257{
236 tcase_add_test(tc, elm_atspi_role_get); 258 tcase_add_test(tc, elm_list_legacy_type_check);
259 tcase_add_test(tc, elm_atspi_role_get);
237#if 0 260#if 0
238 tcase_add_test(tc, elm_list_atspi_selection_selected_children_count_get); 261 tcase_add_test(tc, elm_list_atspi_selection_selected_children_count_get);
239 tcase_add_test(tc, elm_list_atspi_selection_child_select); 262 tcase_add_test(tc, elm_list_atspi_selection_child_select);
240 tcase_add_test(tc, elm_list_atspi_selection_selected_child_deselect); 263 tcase_add_test(tc, elm_list_atspi_selection_selected_child_deselect);
241 tcase_add_test(tc, elm_list_atspi_selection_is_child_selected); 264 tcase_add_test(tc, elm_list_atspi_selection_is_child_selected);
242 tcase_add_test(tc, elm_list_atspi_selection_all_children_select); 265 tcase_add_test(tc, elm_list_atspi_selection_all_children_select);
243 tcase_add_test(tc, elm_list_atspi_selection_clear); 266 tcase_add_test(tc, elm_list_atspi_selection_clear);
244 tcase_add_test(tc, elm_list_atspi_selection_child_deselect); 267 tcase_add_test(tc, elm_list_atspi_selection_child_deselect);
245#endif 268#endif
246 tcase_add_test(tc, elm_atspi_children_parent); 269 tcase_add_test(tc, elm_atspi_children_parent);
247} 270}
diff --git a/src/tests/elementary/elm_test_map.c b/src/tests/elementary/elm_test_map.c
index 954892c..8a8c82a 100644
--- a/src/tests/elementary/elm_test_map.c
+++ b/src/tests/elementary/elm_test_map.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_map_legacy_type_check)
10{
11 Evas_Object *win, *map;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "map", ELM_WIN_BASIC);
16
17 map = elm_map_add(win);
18
19 type = elm_object_widget_type_get(map);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Map"));
22
23 type = evas_object_type_get(map);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_map"));
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_map(TCase *tc) 48void elm_test_map(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_map_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_mapbuf.c b/src/tests/elementary/elm_test_mapbuf.c
index 6b9507e..b0f42c0 100644
--- a/src/tests/elementary/elm_test_mapbuf.c
+++ b/src/tests/elementary/elm_test_mapbuf.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_mapbuf_legacy_type_check)
10{
11 Evas_Object *win, *mapbuf;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "mapbuf", ELM_WIN_BASIC);
16
17 mapbuf = elm_mapbuf_add(win);
18
19 type = elm_object_widget_type_get(mapbuf);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Mapbuf"));
22
23 type = evas_object_type_get(mapbuf);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_mapbuf"));
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_mapbuf(TCase *tc) 48void elm_test_mapbuf(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_mapbuf_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_menu.c b/src/tests/elementary/elm_test_menu.c
index 69f2512..d1e7c24 100644
--- a/src/tests/elementary/elm_test_menu.c
+++ b/src/tests/elementary/elm_test_menu.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_menu_legacy_type_check)
10{
11 Evas_Object *win, *menu;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "menu", ELM_WIN_BASIC);
16
17 menu = elm_menu_add(win);
18
19 type = elm_object_widget_type_get(menu);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Menu"));
22
23 type = evas_object_type_get(menu);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_menu"));
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_menu(TCase *tc) 48void elm_test_menu(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_menu_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_multibuttonentry.c b/src/tests/elementary/elm_test_multibuttonentry.c
index 971d5c8..0495974 100644
--- a/src/tests/elementary/elm_test_multibuttonentry.c
+++ b/src/tests/elementary/elm_test_multibuttonentry.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_multibuttonentry_legacy_type_check)
10{
11 Evas_Object *win, *multibuttonentry;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "multibuttonentry", ELM_WIN_BASIC);
16
17 multibuttonentry = elm_multibuttonentry_add(win);
18
19 type = elm_object_widget_type_get(multibuttonentry);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Multibuttonentry"));
22
23 type = evas_object_type_get(multibuttonentry);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_multibuttonentry"));
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_multibuttonentry(TCase *tc) 48void elm_test_multibuttonentry(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_multibuttonentry_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_naviframe.c b/src/tests/elementary/elm_test_naviframe.c
index 55fa2e2..4729f65 100644
--- a/src/tests/elementary/elm_test_naviframe.c
+++ b/src/tests/elementary/elm_test_naviframe.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_naviframe_legacy_type_check)
10{
11 Evas_Object *win, *naviframe;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "naviframe", ELM_WIN_BASIC);
16
17 naviframe = elm_naviframe_add(win);
18
19 type = elm_object_widget_type_get(naviframe);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Naviframe"));
22
23 type = evas_object_type_get(naviframe);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_naviframe"));
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_naviframe(TCase *tc) 48void elm_test_naviframe(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_naviframe_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_notify.c b/src/tests/elementary/elm_test_notify.c
index 6ef03d7..a018dbc 100644
--- a/src/tests/elementary/elm_test_notify.c
+++ b/src/tests/elementary/elm_test_notify.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_notify_legacy_type_check)
10{
11 Evas_Object *win, *notify;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "notify", ELM_WIN_BASIC);
16
17 notify = elm_notify_add(win);
18
19 type = elm_object_widget_type_get(notify);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Notify"));
22
23 type = evas_object_type_get(notify);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_notify"));
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_notify(TCase *tc) 48void elm_test_notify(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_notify_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_panel.c b/src/tests/elementary/elm_test_panel.c
index 312098d..b710192 100644
--- a/src/tests/elementary/elm_test_panel.c
+++ b/src/tests/elementary/elm_test_panel.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_panel_legacy_type_check)
10{
11 Evas_Object *win, *panel;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "panel", ELM_WIN_BASIC);
16
17 panel = elm_panel_add(win);
18
19 type = elm_object_widget_type_get(panel);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Panel"));
22
23 type = evas_object_type_get(panel);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_panel"));
26
27 elm_shutdown();
28}
29END_TEST
9 30
10START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
11{ 32{
@@ -26,6 +47,7 @@ END_TEST
26 47
27void elm_test_panel(TCase *tc) 48void elm_test_panel(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_panel_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
31 53
diff --git a/src/tests/elementary/elm_test_panes.c b/src/tests/elementary/elm_test_panes.c
index 08d6992..864ef61 100644
--- a/src/tests/elementary/elm_test_panes.c
+++ b/src/tests/elementary/elm_test_panes.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_panes_legacy_type_check)
10{
11 Evas_Object *win, *panes;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "panes", ELM_WIN_BASIC);
16
17 panes = elm_panes_add(win);
18
19 type = elm_object_widget_type_get(panes);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Panes"));
22
23 type = evas_object_type_get(panes);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_panes"));
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_panes(TCase *tc) 48void elm_test_panes(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_panes_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_photo.c b/src/tests/elementary/elm_test_photo.c
index cae8570..3a680b9 100644
--- a/src/tests/elementary/elm_test_photo.c
+++ b/src/tests/elementary/elm_test_photo.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_photo_legacy_type_check)
10{
11 Evas_Object *win, *photo;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "photo", ELM_WIN_BASIC);
16
17 photo = elm_photo_add(win);
18
19 type = elm_object_widget_type_get(photo);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Photo"));
22
23 type = evas_object_type_get(photo);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_photo"));
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_photo(TCase *tc) 48void elm_test_photo(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_photo_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_photocam.c b/src/tests/elementary/elm_test_photocam.c
index 33aa91b..dedf6ab 100644
--- a/src/tests/elementary/elm_test_photocam.c
+++ b/src/tests/elementary/elm_test_photocam.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_photocam_legacy_type_check)
10{
11 Evas_Object *win, *photocam;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "photocam", ELM_WIN_BASIC);
16
17 photocam = elm_photocam_add(win);
18
19 type = elm_object_widget_type_get(photocam);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Photocam"));
22
23 type = evas_object_type_get(photocam);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_photocam"));
26
27 elm_shutdown();
28}
29END_TEST
9 30
10START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
11{ 32{
@@ -52,6 +73,7 @@ END_TEST
52 73
53void elm_test_photocam(TCase *tc) 74void elm_test_photocam(TCase *tc)
54{ 75{
76 tcase_add_test(tc, elm_photocam_legacy_type_check);
55 tcase_add_test(tc, elm_atspi_role_get); 77 tcase_add_test(tc, elm_atspi_role_get);
56 tcase_add_test(tc, efl_ui_image_zoomable_icon); 78 tcase_add_test(tc, efl_ui_image_zoomable_icon);
57} 79}
diff --git a/src/tests/elementary/elm_test_player.c b/src/tests/elementary/elm_test_player.c
index de46096..bd65c54 100644
--- a/src/tests/elementary/elm_test_player.c
+++ b/src/tests/elementary/elm_test_player.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_player_legacy_type_check)
10{
11 Evas_Object *win, *player;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "player", ELM_WIN_BASIC);
16
17 player = elm_player_add(win);
18
19 type = elm_object_widget_type_get(player);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Player"));
22
23 type = evas_object_type_get(player);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_player"));
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_player(TCase *tc) 48void elm_test_player(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_player_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_plug.c b/src/tests/elementary/elm_test_plug.c
index e2ddcb4..17888ac 100644
--- a/src/tests/elementary/elm_test_plug.c
+++ b/src/tests/elementary/elm_test_plug.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_plug_legacy_type_check)
10{
11 Evas_Object *win, *plug;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "plug", ELM_WIN_BASIC);
16
17 plug = elm_plug_add(win);
18
19 type = elm_object_widget_type_get(plug);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Plug"));
22
23 type = evas_object_type_get(plug);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_plug"));
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_plug(TCase *tc) 48void elm_test_plug(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_plug_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_popup.c b/src/tests/elementary/elm_test_popup.c
index 17b8433..13649c1 100644
--- a/src/tests/elementary/elm_test_popup.c
+++ b/src/tests/elementary/elm_test_popup.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_popup_legacy_type_check)
10{
11 Evas_Object *win, *popup;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "popup", ELM_WIN_BASIC);
16
17 popup = elm_popup_add(win);
18
19 type = elm_object_widget_type_get(popup);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Popup"));
22
23 type = evas_object_type_get(popup);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_popup"));
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_popup(TCase *tc) 48void elm_test_popup(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_popup_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_prefs.c b/src/tests/elementary/elm_test_prefs.c
index 298cb59..3c42c65 100644
--- a/src/tests/elementary/elm_test_prefs.c
+++ b/src/tests/elementary/elm_test_prefs.c
@@ -6,6 +6,30 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_prefs_legacy_type_check)
10{
11 Evas_Object *win, *prefs;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "prefs", ELM_WIN_BASIC);
16
17 prefs = elm_prefs_add(win);
18
19 if (prefs)
20 {
21 type = elm_object_widget_type_get(prefs);
22 ck_assert(type != NULL);
23 ck_assert(!strcmp(type, "Elm_Prefs"));
24
25 type = evas_object_type_get(prefs);
26 ck_assert(type != NULL);
27 ck_assert(!strcmp(type, "elm_prefs"));
28 }
29
30 elm_shutdown();
31}
32END_TEST
9 33
10START_TEST (elm_atspi_role_get) 34START_TEST (elm_atspi_role_get)
11{ 35{
@@ -28,5 +52,6 @@ END_TEST
28 52
29void elm_test_prefs(TCase *tc) 53void elm_test_prefs(TCase *tc)
30{ 54{
55 tcase_add_test(tc, elm_prefs_legacy_type_check);
31 tcase_add_test(tc, elm_atspi_role_get); 56 tcase_add_test(tc, elm_atspi_role_get);
32} 57}
diff --git a/src/tests/elementary/elm_test_progressbar.c b/src/tests/elementary/elm_test_progressbar.c
index c953ed8..09bc9f4 100644
--- a/src/tests/elementary/elm_test_progressbar.c
+++ b/src/tests/elementary/elm_test_progressbar.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_progressbar_legacy_type_check)
10{
11 Evas_Object *win, *progressbar;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "progressbar", ELM_WIN_BASIC);
16
17 progressbar = elm_progressbar_add(win);
18
19 type = elm_object_widget_type_get(progressbar);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Progressbar"));
22
23 type = evas_object_type_get(progressbar);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_progressbar"));
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_progressbar(TCase *tc) 48void elm_test_progressbar(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_progressbar_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_radio.c b/src/tests/elementary/elm_test_radio.c
index ee71b7b..9fa05f2 100644
--- a/src/tests/elementary/elm_test_radio.c
+++ b/src/tests/elementary/elm_test_radio.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_radio_legacy_type_check)
10{
11 Evas_Object *win, *radio;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "radio", ELM_WIN_BASIC);
16
17 radio = elm_radio_add(win);
18
19 type = elm_object_widget_type_get(radio);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Radio"));
22
23 type = evas_object_type_get(radio);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_radio"));
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_radio(TCase *tc) 48void elm_test_radio(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_radio_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_scroller.c b/src/tests/elementary/elm_test_scroller.c
index baae424..455bff9 100644
--- a/src/tests/elementary/elm_test_scroller.c
+++ b/src/tests/elementary/elm_test_scroller.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_scroller_legacy_type_check)
10{
11 Evas_Object *win, *scroller;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "scroller", ELM_WIN_BASIC);
16
17 scroller = elm_scroller_add(win);
18
19 type = elm_object_widget_type_get(scroller);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Scroller"));
22
23 type = evas_object_type_get(scroller);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_scroller"));
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_scroller(TCase *tc) 48void elm_test_scroller(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_scroller_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_segmentcontrol.c b/src/tests/elementary/elm_test_segmentcontrol.c
index dafce0e..778a2ae 100644
--- a/src/tests/elementary/elm_test_segmentcontrol.c
+++ b/src/tests/elementary/elm_test_segmentcontrol.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_segment_control_legacy_type_check)
10{
11 Evas_Object *win, *segment_control;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "segment_control", ELM_WIN_BASIC);
16
17 segment_control = elm_segment_control_add(win);
18
19 type = elm_object_widget_type_get(segment_control);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Segment_Control"));
22
23 type = evas_object_type_get(segment_control);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_segment_control"));
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_segmentcontrol(TCase *tc) 48void elm_test_segmentcontrol(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_segment_control_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_separator.c b/src/tests/elementary/elm_test_separator.c
index f6e5eca..fc3f3f5 100644
--- a/src/tests/elementary/elm_test_separator.c
+++ b/src/tests/elementary/elm_test_separator.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_separator_legacy_type_check)
10{
11 Evas_Object *win, *separator;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "separator", ELM_WIN_BASIC);
16
17 separator = elm_separator_add(win);
18
19 type = elm_object_widget_type_get(separator);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Separator"));
22
23 type = evas_object_type_get(separator);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_separator"));
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_separator(TCase *tc) 48void elm_test_separator(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_separator_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_slider.c b/src/tests/elementary/elm_test_slider.c
index 0f08f4b..174bbd1 100644
--- a/src/tests/elementary/elm_test_slider.c
+++ b/src/tests/elementary/elm_test_slider.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_slider_legacy_type_check)
10{
11 Evas_Object *win, *slider;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "slider", ELM_WIN_BASIC);
16
17 slider = elm_slider_add(win);
18
19 type = elm_object_widget_type_get(slider);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Slider"));
22
23 type = evas_object_type_get(slider);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_slider"));
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_slider(TCase *tc) 48void elm_test_slider(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_slider_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_slideshow.c b/src/tests/elementary/elm_test_slideshow.c
index c3b95d2..1bd13f8 100644
--- a/src/tests/elementary/elm_test_slideshow.c
+++ b/src/tests/elementary/elm_test_slideshow.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_slideshow_legacy_type_check)
10{
11 Evas_Object *win, *slideshow;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "slideshow", ELM_WIN_BASIC);
16
17 slideshow = elm_slideshow_add(win);
18
19 type = elm_object_widget_type_get(slideshow);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Slideshow"));
22
23 type = evas_object_type_get(slideshow);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_slideshow"));
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_slideshow(TCase *tc) 48void elm_test_slideshow(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_slideshow_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_spinner.c b/src/tests/elementary/elm_test_spinner.c
index 75d97b8..f86d5a9 100644
--- a/src/tests/elementary/elm_test_spinner.c
+++ b/src/tests/elementary/elm_test_spinner.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_spinner_legacy_type_check)
10{
11 Evas_Object *win, *spinner;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "spinner", ELM_WIN_BASIC);
16
17 spinner = elm_spinner_add(win);
18
19 type = elm_object_widget_type_get(spinner);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Spinner"));
22
23 type = evas_object_type_get(spinner);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_spinner"));
26
27 elm_shutdown();
28}
29END_TEST
9 30
10START_TEST (elm_atspi_role_get) 31START_TEST (elm_atspi_role_get)
11{ 32{
@@ -26,6 +47,7 @@ END_TEST
26 47
27void elm_test_spinner(TCase *tc) 48void elm_test_spinner(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_spinner_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
31 53
diff --git a/src/tests/elementary/elm_test_table.c b/src/tests/elementary/elm_test_table.c
index 3cec20b..ef75fe4 100644
--- a/src/tests/elementary/elm_test_table.c
+++ b/src/tests/elementary/elm_test_table.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_table_legacy_type_check)
10{
11 Evas_Object *win, *table;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "table", ELM_WIN_BASIC);
16
17 table = elm_table_add(win);
18
19 type = elm_object_widget_type_get(table);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Table"));
22
23 type = evas_object_type_get(table);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_table"));
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_table(TCase *tc) 48void elm_test_table(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_table_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_thumb.c b/src/tests/elementary/elm_test_thumb.c
index a319caf..5568ded 100644
--- a/src/tests/elementary/elm_test_thumb.c
+++ b/src/tests/elementary/elm_test_thumb.c
@@ -6,6 +6,28 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_thumb_legacy_type_check)
10{
11 Evas_Object *win, *thumb;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "thumb", ELM_WIN_BASIC);
16
17 thumb = elm_thumb_add(win);
18
19 type = elm_object_widget_type_get(thumb);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Thumb"));
22
23 /* It had abnormal object type... */
24 type = evas_object_type_get(thumb);
25 ck_assert(type != NULL);
26 ck_assert(!strcmp(type, "Elm_Thumb"));
27
28 elm_shutdown();
29}
30END_TEST
9 31
10START_TEST (elm_atspi_role_get) 32START_TEST (elm_atspi_role_get)
11{ 33{
@@ -26,5 +48,6 @@ END_TEST
26 48
27void elm_test_thumb(TCase *tc) 49void elm_test_thumb(TCase *tc)
28{ 50{
29 tcase_add_test(tc, elm_atspi_role_get); 51 tcase_add_test(tc, elm_thumb_legacy_type_check);
52 tcase_add_test(tc, elm_atspi_role_get);
30} 53}
diff --git a/src/tests/elementary/elm_test_toolbar.c b/src/tests/elementary/elm_test_toolbar.c
index eec3233..59d114a 100644
--- a/src/tests/elementary/elm_test_toolbar.c
+++ b/src/tests/elementary/elm_test_toolbar.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_toolbar_legacy_type_check)
10{
11 Evas_Object *win, *toolbar;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "toolbar", ELM_WIN_BASIC);
16
17 toolbar = elm_toolbar_add(win);
18
19 type = elm_object_widget_type_get(toolbar);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Toolbar"));
22
23 type = evas_object_type_get(toolbar);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_toolbar"));
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_toolbar(TCase *tc) 48void elm_test_toolbar(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_toolbar_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_video.c b/src/tests/elementary/elm_test_video.c
index f521373..d5d1d97 100644
--- a/src/tests/elementary/elm_test_video.c
+++ b/src/tests/elementary/elm_test_video.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_video_legacy_type_check)
10{
11 Evas_Object *win, *video;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "video", ELM_WIN_BASIC);
16
17 video = elm_video_add(win);
18
19 type = elm_object_widget_type_get(video);
20 ck_assert(type != NULL);
21 ck_assert(!strcmp(type, "Elm_Video"));
22
23 type = evas_object_type_get(video);
24 ck_assert(type != NULL);
25 ck_assert(!strcmp(type, "elm_video"));
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_video(TCase *tc) 48void elm_test_video(TCase *tc)
28{ 49{
29 tcase_add_test(tc, elm_atspi_role_get); 50 tcase_add_test(tc, elm_video_legacy_type_check);
51 tcase_add_test(tc, elm_atspi_role_get);
30} 52}
diff --git a/src/tests/elementary/elm_test_web.c b/src/tests/elementary/elm_test_web.c
index 610d9fe..afb28e9 100644
--- a/src/tests/elementary/elm_test_web.c
+++ b/src/tests/elementary/elm_test_web.c
@@ -6,6 +6,30 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9START_TEST (elm_web_legacy_type_check)
10{
11 Evas_Object *win, *web;
12 const char *type;
13
14 elm_init(1, NULL);
15 win = elm_win_add(NULL, "web", ELM_WIN_BASIC);
16
17 web = elm_web_add(win);
18
19 if (web)
20 {
21 type = elm_object_widget_type_get(web);
22 ck_assert(type != NULL);
23 ck_assert(!strcmp(type, "Elm_Web"));
24
25 type = evas_object_type_get(web);
26 ck_assert(type != NULL);
27 ck_assert(!strcmp(type, "elm_web"));
28 }
29
30 elm_shutdown();
31}
32END_TEST
9 33
10START_TEST (elm_atspi_role_get) 34START_TEST (elm_atspi_role_get)
11{ 35{
@@ -28,5 +52,6 @@ END_TEST
28 52
29void elm_test_web(TCase *tc) 53void elm_test_web(TCase *tc)
30{ 54{
55 tcase_add_test(tc, elm_web_legacy_type_check);
31 tcase_add_test(tc, elm_atspi_role_get); 56 tcase_add_test(tc, elm_atspi_role_get);
32} 57}
diff --git a/src/tests/elementary/elm_test_win.c b/src/tests/elementary/elm_test_win.c
index 807a823..22b894a 100644
--- a/src/tests/elementary/elm_test_win.c
+++ b/src/tests/elementary/elm_test_win.c
@@ -63,6 +63,25 @@ _timer_fail_flag_cb(void *data)
63 return ECORE_CALLBACK_PASS_ON; 63 return ECORE_CALLBACK_PASS_ON;
64} 64}
65 65
66START_TEST (elm_win_legacy_type_check)
67{
68 Evas_Object *win;
69 const char *type;
70
71 elm_init(1, NULL);
72 win = elm_win_add(NULL, "win", ELM_WIN_BASIC);
73
74 type = elm_object_widget_type_get(win);
75 ck_assert(type != NULL);
76 ck_assert(!strcmp(type, "Elm_Win"));
77
78 type = evas_object_type_get(win);
79 ck_assert(type != NULL);
80 ck_assert(!strcmp(type, "elm_win"));
81
82 elm_shutdown();
83}
84END_TEST
66 85
67START_TEST (elm_atspi_role_get) 86START_TEST (elm_atspi_role_get)
68{ 87{
@@ -398,6 +417,7 @@ END_TEST
398 417
399void elm_test_win(TCase *tc) 418void elm_test_win(TCase *tc)
400{ 419{
420 tcase_add_test(tc, elm_win_legacy_type_check);
401 tcase_add_test(tc, elm_atspi_role_get); 421 tcase_add_test(tc, elm_atspi_role_get);
402 tcase_add_test(tc, elm_atspi_component_position); 422 tcase_add_test(tc, elm_atspi_component_position);
403 tcase_add_test(tc, elm_atspi_component_size); 423 tcase_add_test(tc, elm_atspi_component_size);