aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorYoungbok Shin <youngb.shin@samsung.com>2017-11-06 11:06:41 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2017-11-06 11:06:41 +0900
commitde9f0aff5764ff42368c0e5164d439aba19d4e0c (patch)
tree2c9e4cecb0a09b009dbea3f0376d6ce5030290e8 /src/tests
parentAdding danish translation (diff)
downloadefl-de9f0aff5764ff42368c0e5164d439aba19d4e0c.tar.gz
edje: don't return negative width and height from _parts_extends
Summary: It should return width and height with positive values or zero. @fix Test Plan: make check Reviewers: raster, jpeg, cedric Reviewed By: raster Subscribers: jiin.moon Differential Revision: https://phab.enlightenment.org/D5422
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/edje/edje_test_edje.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c
index c47dccb693..3ea0a34acf 100644
--- a/src/tests/edje/edje_test_edje.c
+++ b/src/tests/edje/edje_test_edje.c
@@ -151,8 +151,14 @@ START_TEST(edje_test_calculate_parens)
int x, y, w, h;
Evas *evas = EDJE_TEST_INIT_EVAS();
Evas_Object *obj;
+ Eina_Rect rect;
obj = edje_object_add(evas);
+
+ /* A negative test case for efl_canvas_layout_calc_parts_extends */
+ rect = efl_canvas_layout_calc_parts_extends(obj);
+ fail_if(rect.w < 0 || rect.h < 0);
+
fail_unless(edje_object_file_set(obj, test_layout_get("test_parens.edj"), "test_group"));
evas_object_resize(obj, 100, 100);