summaryrefslogtreecommitdiff
path: root/src/tests/edje/edje_test_edje.c
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/tests/edje/edje_test_edje.c
parentc5ac584a57eabd9c62ebcdd9e6cca7544efe5748 (diff)
Edje tests: Added a failing test for the file doesn't exist issue.
Diffstat (limited to 'src/tests/edje/edje_test_edje.c')
-rw-r--r--src/tests/edje/edje_test_edje.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/tests/edje/edje_test_edje.c b/src/tests/edje/edje_test_edje.c
index ad92c63d6b..a15c8273da 100644
--- a/src/tests/edje/edje_test_edje.c
+++ b/src/tests/edje/edje_test_edje.c
@@ -9,6 +9,7 @@
9#include <Edje.h> 9#include <Edje.h>
10 10
11#include "edje_suite.h" 11#include "edje_suite.h"
12#include "edje_tests_helpers.h"
12 13
13START_TEST(edje_test_edje_init) 14START_TEST(edje_test_edje_init)
14{ 15{
@@ -22,7 +23,23 @@ START_TEST(edje_test_edje_init)
22} 23}
23END_TEST 24END_TEST
24 25
26START_TEST(edje_test_edje_load)
27{
28 Evas *evas = EDJE_TEST_INIT_EVAS();
29 Edje_Load_Error error;
30 Evas_Object *obj;
31
32 obj = edje_object_add(evas);
33 edje_object_file_set(obj, "blaoeuaeoueoaua.edj", "test");
34 error = edje_object_load_error_get(obj);
35 fail_if(error != EDJE_LOAD_ERROR_DOES_NOT_EXIST);
36
37 EDJE_TEST_FREE_EVAS();
38}
39END_TEST
40
25void edje_test_edje(TCase *tc) 41void edje_test_edje(TCase *tc)
26{ 42{
27 tcase_add_test(tc, edje_test_edje_init); 43 tcase_add_test(tc, edje_test_edje_init);
44 tcase_add_test(tc, edje_test_edje_load);
28} 45}