summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-06-05 15:40:14 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-06-05 15:40:14 +0200
commit7b65438c05f94fb5e475eb8ffa214c4f4e41445e (patch)
tree7c0b035f365dff5522c5f1ef71397e1f83258955
parent0dcbc019a7a9944bca299f6e2505dcf93d2187fd (diff)
-rw-r--r--src/tests/emotion/emotion_suite.c33
1 files changed, 31 insertions, 2 deletions
diff --git a/src/tests/emotion/emotion_suite.c b/src/tests/emotion/emotion_suite.c
index e35c95ad59..1e7ef4ad1a 100644
--- a/src/tests/emotion/emotion_suite.c
+++ b/src/tests/emotion/emotion_suite.c
@@ -41,6 +41,7 @@ EFL_START_TEST(emotion_object_basic)
41 const char *file; 41 const char *file;
42 42
43 ecore_evas_init(); 43 ecore_evas_init();
44 emotion_init();
44 ecore_evas = ecore_evas_new(NULL, 0, 0, 320, 240, NULL); 45 ecore_evas = ecore_evas_new(NULL, 0, 0, 320, 240, NULL);
45 evas = ecore_evas_get(ecore_evas); 46 evas = ecore_evas_get(ecore_evas);
46 47
@@ -50,20 +51,48 @@ EFL_START_TEST(emotion_object_basic)
50 /* We test an audio file here, no need to try decoding the video part */ 51 /* We test an audio file here, no need to try decoding the video part */
51 emotion_object_video_mute_set(obj, EINA_TRUE); 52 emotion_object_video_mute_set(obj, EINA_TRUE);
52 53
54 fprintf(stderr, "DEBUG: %s\n", TESTS_SRC_DIR"/sample.ogg");
53 emotion_object_file_set(obj, TESTS_SRC_DIR"/sample.ogg"); 55 emotion_object_file_set(obj, TESTS_SRC_DIR"/sample.ogg");
54 file = emotion_object_file_get(obj); 56 file = emotion_object_file_get(obj);
55 57
56
57 emotion_object_play_set(obj, 1); 58 emotion_object_play_set(obj, 1);
58 emotion_object_play_get(obj); 59 emotion_object_play_get(obj);
59 emotion_object_play_set(obj, 0); 60 emotion_object_play_set(obj, 0);
60 emotion_object_play_get(obj); 61 emotion_object_play_get(obj);
61 62
63 emotion_shutdown();
62 ecore_evas_free(ecore_evas); 64 ecore_evas_free(ecore_evas);
63 ecore_evas_shutdown(); 65 ecore_evas_shutdown();
64} 66}
65EFL_END_TEST 67EFL_END_TEST
66 68
69/** Not covered Emotiopn EAPI
70emotion_object_play_speed_set
71emotion_object_play_speed_get
72emotion_object_video_subtitle_file_set
73emotion_object_video_subtitle_file_get
74emotion_object_video_channel_name_get
75emotion_object_video_channel_set
76emotion_object_video_channel_get
77emotion_object_spu_mute_set
78emotion_object_spu_mute_get
79emotion_object_spu_channel_name_get
80emotion_object_spu_channel_set
81emotion_object_spu_channel_get
82emotion_object_chapter_count
83emotion_object_chapter_set
84emotion_object_chapter_get
85emotion_object_chapter_name_get
86emotion_object_eject
87emotion_object_meta_info_get
88emotion_object_vis_get
89emotion_object_priority_set
90emotion_object_priority_get
91emotion_object_suspend_set
92emotion_object_suspend_get
93emotion_file_meta_artwork_get
94*/
95
67EFL_START_TEST(emotion_object_basic2) 96EFL_START_TEST(emotion_object_basic2)
68{ 97{
69 Ecore_Evas *ecore_evas = NULL; 98 Ecore_Evas *ecore_evas = NULL;
@@ -165,7 +194,7 @@ EFL_END_TEST
165void emotion_test_init(TCase *tc) 194void emotion_test_init(TCase *tc)
166{ 195{
167 tcase_add_test(tc, emotion_object_basic); 196 tcase_add_test(tc, emotion_object_basic);
168 //tcase_add_test(tc, emotion_object_basic); 197 tcase_add_test(tc, emotion_object_basic2);
169 //tcase_add_test(tc, emotion_object_video); 198 //tcase_add_test(tc, emotion_object_video);
170 //tcase_add_test(tc, emotion_object_audio); 199 //tcase_add_test(tc, emotion_object_audio);
171 //tcase_add_test(tc, emotion_object_misc); 200 //tcase_add_test(tc, emotion_object_misc);