summaryrefslogtreecommitdiff
path: root/src/tests/evas/evas_test_filters.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/evas/evas_test_filters.c')
-rw-r--r--src/tests/evas/evas_test_filters.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/tests/evas/evas_test_filters.c b/src/tests/evas/evas_test_filters.c
index d4d39f8..5841fa2 100644
--- a/src/tests/evas/evas_test_filters.c
+++ b/src/tests/evas/evas_test_filters.c
@@ -297,7 +297,7 @@ START_TEST(evas_filter_text_padding_test)
297 // Don't test proxy cases here. 297 // Don't test proxy cases here.
298 if (tc->source) continue; 298 if (tc->source) continue;
299 299
300 eo_do(to, efl_gfx_filter_program_set(tc->code, "evas_test_filter")); 300 efl_gfx_filter_program_set(to, tc->code, "evas_test_filter");
301 evas_object_text_style_pad_get(to, &l, &r, &t, &b); 301 evas_object_text_style_pad_get(to, &l, &r, &t, &b);
302 evas_object_geometry_get(to, NULL, NULL, &W, &H); 302 evas_object_geometry_get(to, NULL, NULL, &W, &H);
303 //fprintf(stderr, "Case %d: %dx%d for padding %d,%d,%d,%d\n", k, W, H, l, r, t, b); 303 //fprintf(stderr, "Case %d: %dx%d for padding %d,%d,%d,%d\n", k, W, H, l, r, t, b);
@@ -383,18 +383,16 @@ START_TEST(evas_filter_text_render_test)
383 evas_object_move(o, -999, -9999); 383 evas_object_move(o, -999, -9999);
384 evas_object_resize(o, 10, 10); 384 evas_object_resize(o, 10, 10);
385 evas_object_show(o); 385 evas_object_show(o);
386 eo_do(to, 386 efl_gfx_color_set(to, 255, 255, 255, 255);
387 efl_gfx_color_set(255, 255, 255, 255), 387 efl_gfx_filter_source_set(to, tc->source, o);
388 efl_gfx_filter_source_set(tc->source, o), 388 efl_gfx_filter_program_set(to, tc->code, "evas_test_filter");
389 efl_gfx_filter_program_set(tc->code, "evas_test_filter")); 389 o2 = efl_gfx_filter_source_get(to, tc->source);
390 eo_do(to, o2 = efl_gfx_filter_source_get(tc->source));
391 fail_if(o != o2); 390 fail_if(o != o2);
392 } 391 }
393 else 392 else
394 { 393 {
395 eo_do(to, 394 efl_gfx_color_set(to, 255, 255, 255, 255);
396 efl_gfx_color_set(255, 255, 255, 255), 395 efl_gfx_filter_program_set(to, tc->code, "evas_test_filter");
397 efl_gfx_filter_program_set(tc->code, "evas_test_filter"));
398 } 396 }
399 397
400 evas_object_geometry_get(to, NULL, NULL, &w, &h); 398 evas_object_geometry_get(to, NULL, NULL, &w, &h);