From 2136ad5ecb8ec7860eba0e038e69c0f101e15144 Mon Sep 17 00:00:00 2001 From: Vivek Ellur Date: Mon, 12 Oct 2015 12:11:53 -0700 Subject: [PATCH] eina_tiler: add test cases for eina tiler area set/get functions Summary: Added test cases for eina_tiler_area_size_set and get functions Signed-off-by: Vivek Ellur Reviewers: cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3164 Signed-off-by: Cedric BAIL --- src/tests/eina/eina_test_tiler.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/tests/eina/eina_test_tiler.c b/src/tests/eina/eina_test_tiler.c index 6766b629ac..0f3961e946 100644 --- a/src/tests/eina/eina_test_tiler.c +++ b/src/tests/eina/eina_test_tiler.c @@ -134,10 +134,20 @@ START_TEST(eina_test_tiler_all) Eina_Rectangle *rp; Eina_Rectangle r; int i = 0; + int width, height; eina_init(); - tl = eina_tiler_new(640, 480); + tl = eina_tiler_new(1, 1); + + eina_tiler_area_size_get(tl, &width, &height); + fail_if(width != 1 && height != 1); + + width = 640; + height = 480; + eina_tiler_area_size_set(tl, width, height); + eina_tiler_area_size_get(tl, &width, &height); + fail_if(width != 640 && height != 480); eina_tiler_tile_size_set(tl, 32, 32);