summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2019-09-23 15:44:34 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2019-09-23 15:44:34 +0200
commit0bde3cf954e835fafe1cc27802bfba21da36a8d4 (patch)
treed92b630d43f0b95e0660b52592e11776ba2b1fcb
parent8b2cae5b07150c641124978f92f0727a579b6b17 (diff)
Revert "elm_fileselector: disable this test for now"devs/stefan/ci-fileselector
This reverts commit 272f32ee9f867ab852449bcd1c38f05dc9692fc9.
-rw-r--r--src/tests/elementary/elm_test_fileselector.c80
1 files changed, 37 insertions, 43 deletions
diff --git a/src/tests/elementary/elm_test_fileselector.c b/src/tests/elementary/elm_test_fileselector.c
index b26e12f..e3e0901 100644
--- a/src/tests/elementary/elm_test_fileselector.c
+++ b/src/tests/elementary/elm_test_fileselector.c
@@ -6,44 +6,6 @@
6#include <Elementary.h> 6#include <Elementary.h>
7#include "elm_suite.h" 7#include "elm_suite.h"
8 8
9
10EFL_START_TEST(elm_fileselector_legacy_type_check)
11{
12 Evas_Object *win, *fileselector;
13 const char *type;
14
15 win = 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}
28EFL_END_TEST
29
30EFL_START_TEST(elm_atspi_role_get)
31{
32 Evas_Object *win, *fileselector;
33 Efl_Access_Role role;
34
35 win = win_add(NULL, "fileselector", ELM_WIN_BASIC);
36
37 fileselector = elm_fileselector_add(win);
38 role = efl_access_object_role_get(fileselector);
39
40 ck_assert(role == EFL_ACCESS_ROLE_FILE_CHOOSER);
41
42}
43EFL_END_TEST
44
45#if 0
46
47static Eina_Bool 9static Eina_Bool
48timer_expired_cb(void *user_data) 10timer_expired_cb(void *user_data)
49{ 11{
@@ -83,6 +45,42 @@ fileselector_test_helper_wait_flag(double in, Eina_Bool *done)
83 return !did_timeout; 45 return !did_timeout;
84} 46}
85 47
48
49EFL_START_TEST(elm_fileselector_legacy_type_check)
50{
51 Evas_Object *win, *fileselector;
52 const char *type;
53
54 win = win_add(NULL, "fileselector", ELM_WIN_BASIC);
55
56 fileselector = elm_fileselector_add(win);
57
58 type = elm_object_widget_type_get(fileselector);
59 ck_assert(type != NULL);
60 ck_assert(!strcmp(type, "Elm_Fileselector"));
61
62 type = evas_object_type_get(fileselector);
63 ck_assert(type != NULL);
64 ck_assert(!strcmp(type, "elm_fileselector"));
65
66}
67EFL_END_TEST
68
69EFL_START_TEST(elm_atspi_role_get)
70{
71 Evas_Object *win, *fileselector;
72 Efl_Access_Role role;
73
74 win = win_add(NULL, "fileselector", ELM_WIN_BASIC);
75
76 fileselector = elm_fileselector_add(win);
77 role = efl_access_object_role_get(fileselector);
78
79 ck_assert(role == EFL_ACCESS_ROLE_FILE_CHOOSER);
80
81}
82EFL_END_TEST
83
86static void 84static void
87_ready_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 85_ready_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
88{ 86{
@@ -92,7 +90,6 @@ _ready_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED
92 ecore_main_loop_quit(); 90 ecore_main_loop_quit();
93} 91}
94 92
95
96EFL_START_TEST(elm_fileselector_selected) 93EFL_START_TEST(elm_fileselector_selected)
97{ 94{
98 Evas_Object *win, *fileselector; 95 Evas_Object *win, *fileselector;
@@ -147,13 +144,10 @@ EFL_START_TEST(elm_fileselector_selected)
147} 144}
148EFL_END_TEST 145EFL_END_TEST
149 146
150#endif
151
152void elm_test_fileselector(TCase *tc) 147void elm_test_fileselector(TCase *tc)
153{ 148{
154 tcase_add_test(tc, elm_fileselector_legacy_type_check); 149 tcase_add_test(tc, elm_fileselector_legacy_type_check);
155 tcase_add_test(tc, elm_atspi_role_get); 150 tcase_add_test(tc, elm_atspi_role_get);
156 //FIXME this should be reenabled when issues on travis are fixed with this. 151 tcase_add_test(tc, elm_fileselector_selected);
157 //tcase_add_test(tc, elm_fileselector_selected);
158} 152}
159 153