summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2020-04-22 13:17:43 -0400
committerStefan Schmidt <s.schmidt@samsung.com>2020-04-28 13:48:31 +0200
commitfaed679d532a84c3e8ab8b164c10a5420bf395d9 (patch)
tree33745dde5e20f270221fd83ae7d3be299837061c /src/tests
parentc6a9574f10d556bfb35b3e01aff981331431fcc6 (diff)
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
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/elementary/suite_helpers.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/tests/elementary/suite_helpers.h b/src/tests/elementary/suite_helpers.h
index 4afae79024..29aa03522a 100644
--- a/src/tests/elementary/suite_helpers.h
+++ b/src/tests/elementary/suite_helpers.h
@@ -56,6 +56,20 @@ do \
56 ck_assert_int_eq(_sz.h, (height)); \ 56 ck_assert_int_eq(_sz.h, (height)); \
57} while (0) 57} while (0)
58 58
59#define assert_object_width_eq(obj, width) \
60do \
61{ \
62 Eina_Size2D _sz = efl_gfx_entity_size_get((obj)); \
63 ck_assert_int_eq(_sz.w, (width)); \
64} while (0)
65
66#define assert_object_height_eq(obj, height) \
67do \
68{ \
69 Eina_Size2D _sz = efl_gfx_entity_size_get((obj)); \
70 ck_assert_int_eq(_sz.h, (height)); \
71} while (0)
72
59#define assert_object_pos_eq(obj, _x, _y) \ 73#define assert_object_pos_eq(obj, _x, _y) \
60do \ 74do \
61{ \ 75{ \