summaryrefslogtreecommitdiff
path: root/src/tests/elementary/elm_code_test_basic.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-06-02 17:19:08 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-06-02 17:19:08 -0700
commitd384012307881898a2df49f68fa6b46a4cd9972d (patch)
tree31706c65b8c56083a151470721cf36e8bb46939d /src/tests/elementary/elm_code_test_basic.c
parent9f129a8711f9bb71ee7cf6c13f7965926255c975 (diff)
elementary: merging in elm_code widget.
Theme is not there as it should be manually merged into the elementary default theme.
Diffstat (limited to 'src/tests/elementary/elm_code_test_basic.c')
-rw-r--r--src/tests/elementary/elm_code_test_basic.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/tests/elementary/elm_code_test_basic.c b/src/tests/elementary/elm_code_test_basic.c
new file mode 100644
index 0000000..9805a75
--- /dev/null
+++ b/src/tests/elementary/elm_code_test_basic.c
@@ -0,0 +1,28 @@
1#ifdef HAVE_CONFIG_H
2# include "elementary_config.h"
3#endif
4
5#define ELM_INTERNAL_API_ARGESFSDFEFC
6
7#include "elm_suite.h"
8#include "Elementary.h"
9
10START_TEST (elm_code_create_test)
11{
12 char *path = TESTS_SRC_DIR "/testfile.txt";
13 Elm_Code *code;
14
15 elm_init(1, NULL);
16 code = elm_code_create();
17 elm_code_file_open(code, path);
18
19 ck_assert(!!code);
20 elm_code_free(code);
21 elm_shutdown();
22}
23END_TEST
24
25void elm_code_test_basic(TCase *tc)
26{
27 tcase_add_test(tc, elm_code_create_test);
28}