tests/elm: add some more specific convenience macros for size checks

sometimes a test might only want to verify the width or height of an object

Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org>
Differential Revision: https://phab.enlightenment.org/D11750
This commit is contained in:
Mike Blumenkrantz 2020-04-22 13:17:43 -04:00 committed by Stefan Schmidt
parent c6a9574f10
commit faed679d53
1 changed files with 14 additions and 0 deletions

View File

@ -56,6 +56,20 @@ do \
ck_assert_int_eq(_sz.h, (height)); \
} while (0)
#define assert_object_width_eq(obj, width) \
do \
{ \
Eina_Size2D _sz = efl_gfx_entity_size_get((obj)); \
ck_assert_int_eq(_sz.w, (width)); \
} while (0)
#define assert_object_height_eq(obj, height) \
do \
{ \
Eina_Size2D _sz = efl_gfx_entity_size_get((obj)); \
ck_assert_int_eq(_sz.h, (height)); \
} while (0)
#define assert_object_pos_eq(obj, _x, _y) \
do \
{ \