summaryrefslogtreecommitdiff
path: root/src/tests/edje
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2018-06-25 11:29:10 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-25 11:32:33 -0400
commit9a9970ae6293653169254380430b70fa62324efb (patch)
tree1969ccbaf6a020538b347826beed8a4eb51d91b9 /src/tests/edje
parent561d22929c4dd8385f49be9d71a8b114efcccc29 (diff)
tests: Update edje test to wrap edje_object_part_object_get with
Summary: freeze/thaw @ref T6884 Depends on D6403 Reviewers: zmike, ManMower Reviewed By: zmike Subscribers: cedric, #committers Tags: #efl Maniphest Tasks: T6884 Differential Revision: https://phab.enlightenment.org/D6404
Diffstat (limited to 'src/tests/edje')
-rw-r--r--src/tests/edje/edje_test_edje.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c
index 0f98e3c..b8c8179 100644
--- a/src/tests/edje/edje_test_edje.c
+++ b/src/tests/edje/edje_test_edje.c
@@ -176,19 +176,27 @@ EFL_START_TEST(edje_test_masking)
176 edje_object_part_geometry_get(obj, "background", &x, &y, &w, &h); 176 edje_object_part_geometry_get(obj, "background", &x, &y, &w, &h);
177 fail_if(x != 0 || y != 0 || w != 100 || h != 100); 177 fail_if(x != 0 || y != 0 || w != 100 || h != 100);
178 178
179 edje_object_freeze(obj);
179 clip = edje_object_part_object_get(obj, "clip2"); 180 clip = edje_object_part_object_get(obj, "clip2");
181 edje_object_thaw(obj);
180 fail_if(!clip); 182 fail_if(!clip);
181 183
182 /* check value of no_render flag as seen from evas land */ 184 /* check value of no_render flag as seen from evas land */
185 edje_object_freeze(obj);
183 sub = edje_object_part_object_get(obj, "mask"); 186 sub = edje_object_part_object_get(obj, "mask");
187 edje_object_thaw(obj);
184 fail_if(!efl_canvas_object_no_render_get(sub)); 188 fail_if(!efl_canvas_object_no_render_get(sub));
185 189
186 /* check that text has a clip (based on description.clip_to) */ 190 /* check that text has a clip (based on description.clip_to) */
191 edje_object_freeze(obj);
187 sub = edje_object_part_object_get(obj, "text"); 192 sub = edje_object_part_object_get(obj, "text");
193 edje_object_thaw(obj);
188 fail_if(!efl_canvas_object_clip_get(sub)); 194 fail_if(!efl_canvas_object_clip_get(sub));
189 195
190 /* test description.clip_to override */ 196 /* test description.clip_to override */
197 edje_object_freeze(obj);
191 sub = edje_object_part_object_get(obj, "noclip"); 198 sub = edje_object_part_object_get(obj, "noclip");
199 edje_object_thaw(obj);
192 clip2 = efl_canvas_object_clip_get(sub); 200 clip2 = efl_canvas_object_clip_get(sub);
193 fail_if(clip != clip2); 201 fail_if(clip != clip2);
194 202
@@ -211,17 +219,25 @@ EFL_START_TEST(edje_test_filters)
211 evas_object_resize(obj, 200, 200); 219 evas_object_resize(obj, 200, 200);
212 220
213 /* check value of no_render flag as seen from evas land */ 221 /* check value of no_render flag as seen from evas land */
222 edje_object_freeze(obj);
214 sub = edje_object_part_object_get(obj, "mask"); 223 sub = edje_object_part_object_get(obj, "mask");
224 edje_object_thaw(obj);
215 fail_if(!efl_canvas_object_no_render_get(sub)); 225 fail_if(!efl_canvas_object_no_render_get(sub));
216 226
217 /* check no_render inheritance */ 227 /* check no_render inheritance */
228 edje_object_freeze(obj);
218 sub = edje_object_part_object_get(obj, "mask2"); 229 sub = edje_object_part_object_get(obj, "mask2");
230 edje_object_thaw(obj);
219 fail_if(efl_canvas_object_no_render_get(sub)); 231 fail_if(efl_canvas_object_no_render_get(sub));
232 edje_object_freeze(obj);
220 sub = edje_object_part_object_get(obj, "mask3"); 233 sub = edje_object_part_object_get(obj, "mask3");
234 edje_object_thaw(obj);
221 fail_if(!efl_canvas_object_no_render_get(sub)); 235 fail_if(!efl_canvas_object_no_render_get(sub));
222 236
223 /* text part: check filter status */ 237 /* text part: check filter status */
238 edje_object_freeze(obj);
224 text = edje_object_part_object_get(obj, "text"); 239 text = edje_object_part_object_get(obj, "text");
240 edje_object_thaw(obj);
225 fail_if(!text); 241 fail_if(!text);
226 242
227 efl_gfx_filter_program_get(text, &prg, &name); 243 efl_gfx_filter_program_get(text, &prg, &name);
@@ -251,7 +267,9 @@ EFL_START_TEST(edje_test_snapshot)
251 evas_object_resize(obj, 200, 200); 267 evas_object_resize(obj, 200, 200);
252 268
253 /* check value of no_render flag as seen from evas land */ 269 /* check value of no_render flag as seen from evas land */
270 edje_object_freeze(obj);
254 sub = edje_object_part_object_get(obj, "snap"); 271 sub = edje_object_part_object_get(obj, "snap");
272 edje_object_thaw(obj);
255 fail_if(!efl_isa(sub, EFL_CANVAS_SNAPSHOT_CLASS) && 273 fail_if(!efl_isa(sub, EFL_CANVAS_SNAPSHOT_CLASS) &&
256 !evas_object_image_snapshot_get(sub)); 274 !evas_object_image_snapshot_get(sub));
257 275
@@ -500,7 +518,9 @@ EFL_START_TEST(edje_test_box)
500 edje_object_part_box_insert_after(obj, "box", sobjs[4], sobjs[3]); 518 edje_object_part_box_insert_after(obj, "box", sobjs[4], sobjs[3]);
501 edje_object_part_box_insert_at(obj, "box", sobjs[2], 2); 519 edje_object_part_box_insert_at(obj, "box", sobjs[2], 2);
502 520
521 edje_object_freeze(obj);
503 box = edje_object_part_object_get(obj, "box"); 522 box = edje_object_part_object_get(obj, "box");
523 edje_object_thaw(obj);
504 it = evas_object_box_iterator_new(box); 524 it = evas_object_box_iterator_new(box);
505 525
506 i = 0; 526 i = 0;