summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore.c
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2014-09-01 15:08:49 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-12-23 23:59:40 -0200
commita3db1dddd3ba67c81118f7f2c0bc753dc8aac551 (patch)
tree233ee1be7bfa299bff560207135d20940c4e411f /src/tests/ecore/ecore_test_ecore.c
parent1a3cb45f1cc7fdf8d481879e6bd7349d9cb0b3fa (diff)
efl-js: JavaScript Eolian binding
To configure efl sources with bindings to use in nodejs add ––with-js=nodejs in configure flags to generate node files $ configure --with-js=nodejs and compile normally with: $ make $ make install To use, you have to require efl: efl = require('efl') The bindings is divided in two parts: generated and manually written. The generation uses the Eolian library for parsing Eo files and generate C++ code that is compiled against V8 interpreter library to create a efl.node file that can be required in a node.js instance. @feature
Diffstat (limited to 'src/tests/ecore/ecore_test_ecore.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/tests/ecore/ecore_test_ecore.c b/src/tests/ecore/ecore_test_ecore.c
index a5331b49aa..968a7ec553 100644
--- a/src/tests/ecore/ecore_test_ecore.c
+++ b/src/tests/ecore/ecore_test_ecore.c
@@ -267,6 +267,39 @@ START_TEST(ecore_test_ecore_main_loop_fd_handler)
267} 267}
268END_TEST 268END_TEST
269 269
270START_TEST(ecore_test_ecore_main_loop_fd_handler_activate_modify)
271{
272 Eina_Bool did = EINA_FALSE;
273 Ecore_Fd_Handler *fd_handler;
274 int comm[2];
275 int ret;
276
277 ret = ecore_init();
278 fail_if(ret < 1);
279
280 ret = pipe(comm);
281 fail_if(ret != 0);
282
283 fd_handler = ecore_main_fd_handler_add
284 (comm[0], ECORE_FD_ERROR, _fd_handler_cb, &did, NULL, NULL);
285 fail_if(fd_handler == NULL);
286
287 ecore_main_fd_handler_active_set(fd_handler, ECORE_FD_READ);
288
289 ret = write(comm[1], "e", 1);
290 fail_if(ret != 1);
291
292 ecore_main_loop_begin();
293
294 close(comm[0]);
295 close(comm[1]);
296
297 fail_if(did != EINA_TRUE);
298
299 ret = ecore_shutdown();
300}
301END_TEST
302
270static Eina_Bool 303static Eina_Bool
271_event_handler_cb(void *data, int type, void *event) 304_event_handler_cb(void *data, int type, void *event)
272{ 305{
@@ -705,6 +738,7 @@ void ecore_test_ecore(TCase *tc)
705 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_exiter); 738 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_exiter);
706 tcase_add_test(tc, ecore_test_ecore_main_loop_timer); 739 tcase_add_test(tc, ecore_test_ecore_main_loop_timer);
707 tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler); 740 tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler);
741 tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler_activate_modify);
708 tcase_add_test(tc, ecore_test_ecore_main_loop_event); 742 tcase_add_test(tc, ecore_test_ecore_main_loop_event);
709 tcase_add_test(tc, ecore_test_ecore_main_loop_timer_inner); 743 tcase_add_test(tc, ecore_test_ecore_main_loop_timer_inner);
710 tcase_add_test(tc, ecore_test_ecore_main_loop_event_recursive); 744 tcase_add_test(tc, ecore_test_ecore_main_loop_event_recursive);