cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2136ad5ecb8ec7860eba0e038e69c0f101e15144

commit 2136ad5ecb8ec7860eba0e038e69c0f101e15144
Author: Vivek Ellur <vivek.el...@samsung.com>
Date:   Mon Oct 12 12:11:53 2015 -0700

    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.el...@samsung.com>
    
    Reviewers: cedric
    
    Reviewed By: cedric
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D3164
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 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 6766b62..0f3961e 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);
 

-- 


Reply via email to