summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/edje/edje_test_edje.c27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c
index d7d36597c0..e9478c7508 100644
--- a/src/tests/edje/edje_test_edje.c
+++ b/src/tests/edje/edje_test_edje.c
@@ -74,9 +74,36 @@ START_TEST(edje_test_load_simple_layout)
74} 74}
75END_TEST 75END_TEST
76 76
77START_TEST(edje_test_simple_layout_geometry)
78{
79 int x, y, w, h;
80 int r, g, b, a;
81 Evas *evas = EDJE_TEST_INIT_EVAS();
82 Evas_Object *obj, *bg;
83
84 obj = edje_object_add(evas);
85 fail_unless(edje_object_file_set(obj, test_layout_get("test_layout.edj"), "test_group"));
86
87 evas_object_resize(obj, 1000, 1000);
88 edje_object_part_geometry_get(obj, "background", &x, &y, &w, &h);
89
90 fail_if(x != 0 || y != 0);
91 fail_if(w != 1000 || h != 1000);
92
93 bg = edje_object_part_object_get(obj, "background");
94 fail_if(!bg);
95
96 evas_object_color_get(bg, &r, &g, &b, &a);
97 fail_if(r != 255 || g != 255 || b != 255 || a != 255);
98
99 EDJE_TEST_FREE_EVAS();
100}
101END_TEST
102
77void edje_test_edje(TCase *tc) 103void edje_test_edje(TCase *tc)
78{ 104{
79 tcase_add_test(tc, edje_test_edje_init); 105 tcase_add_test(tc, edje_test_edje_init);
80 tcase_add_test(tc,edje_test_load_simple_layout); 106 tcase_add_test(tc,edje_test_load_simple_layout);
81 tcase_add_test(tc, edje_test_edje_load); 107 tcase_add_test(tc, edje_test_edje_load);
108 tcase_add_test(tc, edje_test_simple_layout_geometry);
82} 109}