summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Schmidt <s.schmidt@samsung.com>2020-04-03 16:36:05 +0200
committerStefan Schmidt <s.schmidt@samsung.com>2020-04-23 14:04:45 +0200
commit5ad7188a8e38322c1f5a52e34052012e33b057ce (patch)
tree622d190623afdcd4a64ecb9c80541a8158946239
parent6edc26563a78b0568b3333c2535e2b1be5642364 (diff)
add more EAPI calls to see what we could reach when implementeddevs/stefan/emotion-test-suite
-rw-r--r--src/tests/emotion/emotion_suite.c49
1 files changed, 42 insertions, 7 deletions
diff --git a/src/tests/emotion/emotion_suite.c b/src/tests/emotion/emotion_suite.c
index 979570c554..7b5f5e570c 100644
--- a/src/tests/emotion/emotion_suite.c
+++ b/src/tests/emotion/emotion_suite.c
@@ -40,9 +40,10 @@ EFL_START_TEST(emotion_simple)
40 double pos, len; 40 double pos, len;
41 double ratio; 41 double ratio;
42 int iw, ih; 42 int iw, ih;
43 int l, r, t, b;
43 const char *file; 44 const char *file;
44 const Eina_List *wl, *l;
45 Emotion_Webcam *webcam; 45 Emotion_Webcam *webcam;
46 Emotion_Aspect *aspect;
46 47
47 ecore_evas_init(); 48 ecore_evas_init();
48 ecore_evas = ecore_evas_new(NULL, 0, 0, 800, 600, NULL); 49 ecore_evas = ecore_evas_new(NULL, 0, 0, 800, 600, NULL);
@@ -50,6 +51,7 @@ EFL_START_TEST(emotion_simple)
50 51
51 obj = emotion_object_add(evas); 52 obj = emotion_object_add(evas);
52 emotion_object_init(obj, "gst1"); 53 emotion_object_init(obj, "gst1");
54 emotion_object_module_option_set(obj, "foo", "bar");
53 emotion_object_vis_set(obj, EMOTION_VIS_NONE); 55 emotion_object_vis_set(obj, EMOTION_VIS_NONE);
54 emotion_object_last_position_load(obj); 56 emotion_object_last_position_load(obj);
55 emotion_object_play_set(obj, 0); 57 emotion_object_play_set(obj, 0);
@@ -84,12 +86,45 @@ EFL_START_TEST(emotion_simple)
84 emotion_object_file_set(obj, file); 86 emotion_object_file_set(obj, file);
85 emotion_object_last_position_save(obj); 87 emotion_object_last_position_save(obj);
86 88
87 wl = emotion_webcams_get(); 89 emotion_webcams_get();
88 EINA_LIST_FOREACH(wl, l, webcam) 90 emotion_webcam_name_get(webcam);
89 { 91 emotion_webcam_device_get(webcam);
90 emotion_webcam_name_get(webcam); 92 emotion_webcam_custom_get(webcam);
91 emotion_webcam_device_get(webcam); 93
92 } 94 emotion_object_extension_may_play_fast_get("file");
95 emotion_object_extension_may_play_get("file");
96
97 _emotion_pending_ecore_begin();
98 _emotion_pending_ecore_end();
99
100 _emotion_pending_object_ref();
101 _emotion_pending_object_unref();
102
103 emotion_object_image_get(obj);
104
105 emotion_object_border_set(obj, 1, 1, 1, 1);
106 emotion_object_border_get(obj, &l, &r, &t, &b);
107
108 emotion_object_bg_color_set(obj, 1, 1, 1, 1);
109 emotion_object_bg_color_get(obj, &l, &r, &t, &b);
110
111 //emotion_object_keep_aspect_set(obj, aspect);
112 emotion_object_keep_aspect_get(obj);
113
114 emotion_object_play_get(obj);
115 emotion_object_buffer_size_get(obj);
116 emotion_object_video_handled_get(obj);
117 emotion_object_audio_handled_get(obj);
118
119 emotion_object_smooth_scale_set(obj, EINA_TRUE);
120 emotion_object_smooth_scale_get(obj);
121
122 emotion_object_audio_volume_get(obj);
123 emotion_object_audio_channel_name_get(obj, 1);
124 emotion_object_audio_channel_set(obj, 1);
125 emotion_object_audio_channel_get(obj);
126
127
93 128
94 ecore_evas_free(ecore_evas); 129 ecore_evas_free(ecore_evas);
95 ecore_evas_shutdown(); 130 ecore_evas_shutdown();