aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-02-21 08:38:52 +0000
committerTom Hacohen <tom@stosb.com>2013-02-21 08:41:09 +0000
commitac166774055b22a671284b572706b3fde2109b3c (patch)
tree26092a412b454a258cf239ea41f09747516668d3 /src
parenta05b4b4e37220548711d92e0f5a1e858977dd258 (diff)
downloadefl-ac166774055b22a671284b572706b3fde2109b3c.tar.gz
efl-ac166774055b22a671284b572706b3fde2109b3c.tar.xz
efl-ac166774055b22a671284b572706b3fde2109b3c.zip
Edje tests: Added missing file.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile_Edje.am3
-rw-r--r--src/tests/edje/edje_tests_helpers.h37
2 files changed, 39 insertions, 1 deletions
diff --git a/src/Makefile_Edje.am b/src/Makefile_Edje.am
index 9ae0270e2..ddd830403 100644
--- a/src/Makefile_Edje.am
+++ b/src/Makefile_Edje.am
@@ -190,7 +190,8 @@ bin/edje/edje_convert.h \
bin/edje/edje_convert.c \
bin/edje/edje_data_convert.c \
bin/edje/edje_convert_main.c \
-lib/edje/edje_convert.c
+lib/edje/edje_convert.c \
+rc/tests/edje/edje_tests_helpers.h
bin_SCRIPTS += bin/edje/edje_recc
diff --git a/src/tests/edje/edje_tests_helpers.h b/src/tests/edje/edje_tests_helpers.h
new file mode 100644
index 000000000..fa87e816b
--- /dev/null
+++ b/src/tests/edje/edje_tests_helpers.h
@@ -0,0 +1,37 @@
+#ifndef EDJE_TEST_HELPERS_H
+#define EDJE_TEST_HELPERS_H
+
+/* FIXME: Currently depends on the buffer engine, should we do anything
+ * fancier? */
+
+#define EDJE_TEST_INIT_EVAS() _setup_evas()
+
+#define EDJE_TEST_FREE_EVAS() \
+do \
+{ \
+ evas_free(evas); \
+ evas_shutdown(); \
+} \
+while (0)
+
+static Evas *
+_setup_evas()
+{
+ Evas *evas;
+ Evas_Engine_Info *einfo;
+
+ evas_init();
+ evas = evas_new();
+
+ evas_output_method_set(evas, evas_render_method_lookup("buffer"));
+ einfo = evas_engine_info_get(evas);
+ evas_engine_info_set(evas, einfo);
+
+ evas_output_size_set(evas, 500, 500);
+ evas_output_viewport_set(evas, 0, 0, 500, 500);
+
+ return evas;
+}
+
+#endif
+