forked from enlightenment/efl
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:
parent
4f604e4d1e
commit
2136ad5ecb
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue