aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-02-19 16:00:38 +0000
committerTom Hacohen <tom@stosb.com>2013-02-19 16:00:45 +0000
commit9654db3b16a9339b42008d96c7bad06784f5c7ba (patch)
tree79707e3128f2b9588a6f723a47192742f1da2f61 /src
parentc5ac584a57eabd9c62ebcdd9e6cca7544efe5748 (diff)
downloadefl-9654db3b16a9339b42008d96c7bad06784f5c7ba.tar.gz
efl-9654db3b16a9339b42008d96c7bad06784f5c7ba.tar.xz
efl-9654db3b16a9339b42008d96c7bad06784f5c7ba.zip
Edje tests: Added a failing test for the file doesn't exist issue.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile_Edje.am1
-rw-r--r--src/tests/edje/edje_test_edje.c17
2 files changed, 18 insertions, 0 deletions
diff --git a/src/Makefile_Edje.am b/src/Makefile_Edje.am
index 3d1aeac3c..9ae0270e2 100644
--- a/src/Makefile_Edje.am
+++ b/src/Makefile_Edje.am
@@ -199,6 +199,7 @@ bin_SCRIPTS += bin/edje/edje_recc
if EFL_ENABLE_TESTS
check_PROGRAMS += tests/edje/edje_suite
+TESTS += tests/edje/edje_suite
tests_edje_edje_suite_SOURCES = \
tests/edje/edje_suite.c \
diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c
index ad92c63d6..a15c8273d 100644
--- a/src/tests/edje/edje_test_edje.c
+++ b/src/tests/edje/edje_test_edje.c
@@ -9,6 +9,7 @@
#include <Edje.h>
#include "edje_suite.h"
+#include "edje_tests_helpers.h"
START_TEST(edje_test_edje_init)
{
@@ -22,7 +23,23 @@ START_TEST(edje_test_edje_init)
}
END_TEST
+START_TEST(edje_test_edje_load)
+{
+ Evas *evas = EDJE_TEST_INIT_EVAS();
+ Edje_Load_Error error;
+ Evas_Object *obj;
+
+ obj = edje_object_add(evas);
+ edje_object_file_set(obj, "blaoeuaeoueoaua.edj", "test");
+ error = edje_object_load_error_get(obj);
+ fail_if(error != EDJE_LOAD_ERROR_DOES_NOT_EXIST);
+
+ EDJE_TEST_FREE_EVAS();
+}
+END_TEST
+
void edje_test_edje(TCase *tc)
{
tcase_add_test(tc, edje_test_edje_init);
+ tcase_add_test(tc, edje_test_edje_load);
}