forked from enlightenment/efl
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:
parent
c6a9574f10
commit
faed679d53
|
@ -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 \
|
||||
{ \
|
||||
|
|
Loading…
Reference in New Issue