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 <vivek.ellur@samsung.com>

Reviewers: cedric

Reviewed By: cedric

Subscribers: cedric

Differential Revision: https://phab.enlightenment.org/D3164

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Vivek Ellur 2015-10-12 12:11:53 -07:00 committed by Cedric BAIL
parent 4f604e4d1e
commit 2136ad5ecb
1 changed files with 11 additions and 1 deletions

View File

@ -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);