summaryrefslogtreecommitdiff
path: root/src/tests/evas/evas_test_image.c
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2016-03-02 15:44:12 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2016-03-15 11:11:59 +0900
commit2d10127524b50ba5fbfbf4615295ac1c46ebb4e5 (patch)
treee8ad7b73ce051a0736a425533eed3b66106fcda9 /src/tests/evas/evas_test_image.c
parente9508ea80e6d333ad89645a1e03c084a7589e1f6 (diff)
Evas image: Move filled property to Efl.Gfx.Fill and set as default
The filled property should be set to true by default since it makes more sense. Legacy APIs behaviour is preserved by setting the default to false.
Diffstat (limited to '')
-rw-r--r--src/tests/evas/evas_test_image.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tests/evas/evas_test_image.c b/src/tests/evas/evas_test_image.c
index aa7debbfa9..0f7514c3a0 100644
--- a/src/tests/evas/evas_test_image.c
+++ b/src/tests/evas/evas_test_image.c
@@ -627,8 +627,37 @@ START_TEST(evas_object_image_partially_load_orientation)
627} 627}
628END_TEST 628END_TEST
629 629
630START_TEST(evas_object_image_defaults)
631{
632 Evas *e = _setup_evas();
633 Evas_Object *o;
634 int x, y, w, h, iw, ih;
635 Eina_Bool b;
636
637 /* test legacy defaults */
638 o = evas_object_image_add(e);
639 fail_if(evas_object_image_filled_get(o));
640 evas_object_image_fill_get(o, &x, &y, &w, &h);
641 fail_if(x || y || w || h);
642 eo_del(o);
643
644 o = evas_object_image_filled_add(e);
645 fail_if(!evas_object_image_filled_get(o));
646 eo_del(o);
647
648 /* test eo defaults */
649 eo_add(&o, EVAS_IMAGE_CLASS, e);
650 fail_if(!efl_gfx_fill_filled_get(o));
651 eo_del(o);
652
653 evas_free(e);
654 evas_shutdown();
655}
656END_TEST
657
630void evas_test_image_object(TCase *tc) 658void evas_test_image_object(TCase *tc)
631{ 659{
660 tcase_add_test(tc, evas_object_image_defaults);
632 tcase_add_test(tc, evas_object_image_loader); 661 tcase_add_test(tc, evas_object_image_loader);
633 tcase_add_test(tc, evas_object_image_loader_orientation); 662 tcase_add_test(tc, evas_object_image_loader_orientation);
634 tcase_add_test(tc, evas_object_image_orient); 663 tcase_add_test(tc, evas_object_image_orient);