aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/ecore_js
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/ecore_js')
-rw-r--r--src/tests/ecore_js/ecore_js_suite.cc17
-rwxr-xr-xsrc/tests/ecore_js/ecore_js_suite.js7
2 files changed, 24 insertions, 0 deletions
diff --git a/src/tests/ecore_js/ecore_js_suite.cc b/src/tests/ecore_js/ecore_js_suite.cc
index ba143e7166..bb37413b29 100644
--- a/src/tests/ecore_js/ecore_js_suite.cc
+++ b/src/tests/ecore_js/ecore_js_suite.cc
@@ -20,6 +20,7 @@
#include <ecore_js_job.hh>
#include <ecore_js_idle.hh>
#include <ecore_js_animator.hh>
+#include <ecore_js_poller.hh>
const char* ToCString(const v8::String::Utf8Value& value) {
return *value ? *value : "<string conversion failed>";
@@ -368,6 +369,22 @@ void test_setup(v8::Handle<v8::Object> exports)
"ecore_animator"
"_timeline_add"));
+ // poller
+ register_poller_core(isolate, exports,
+ compatibility_new<String>(isolate, "ECORE_POLLER_CORE"));
+ register_poller_poll_interval_set(isolate, exports,
+ compatibility_new<String>(isolate,
+ "ecore_poller"
+ "_poll_interval"
+ "_set"));
+ register_poller_poll_interval_get(isolate, exports,
+ compatibility_new<String>(isolate,
+ "ecore_poller"
+ "_poll_interval"
+ "_get"));
+ register_poller_add(isolate, exports,
+ compatibility_new<String>(isolate, "ecore_poller_add"));
+
std::cerr << __LINE__ << std::endl;
}
diff --git a/src/tests/ecore_js/ecore_js_suite.js b/src/tests/ecore_js/ecore_js_suite.js
index e471bf4854..5ab2b5ecb5 100755
--- a/src/tests/ecore_js/ecore_js_suite.js
+++ b/src/tests/ecore_js/ecore_js_suite.js
@@ -272,6 +272,13 @@ assert(suite.ecore_animator_source_get()
suite.ecore_animator_source_set(suite.ECORE_ANIMATOR_SOURCE_TIMER);
assert(suite.ecore_animator_source_get() === suite.ECORE_ANIMATOR_SOURCE_TIMER);
+// Ecore poller
+
+suite.ecore_poller_poll_interval_set(suite.ECORE_POLLER_CORE, 42);
+assert(suite.ecore_poller_poll_interval_get(suite.ECORE_POLLER_CORE) === 42);
+suite.ecore_poller_poll_interval_set(suite.ECORE_POLLER_CORE, 2);
+assert(suite.ecore_poller_poll_interval_get(suite.ECORE_POLLER_CORE) === 2);
+
// Ecore shutdown
suite.ecore_shutdown();