summaryrefslogtreecommitdiff
path: root/src/tests/efl_js
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2016-03-14 13:14:37 -0300
committerVitor Sousa <vitorsousasilva@gmail.com>2016-03-18 17:46:38 -0300
commita85348b70bdae9672ed2017d9a0c16fa315edcfa (patch)
tree75da634dbd86e26ed5133077239f7d76d9ff6eaa /src/tests/efl_js
parentbd200cefc44cb8b03ef465791b4dfc6b6cec85be (diff)
efl js: Update Javascript binding to compile with new Eolian API
Reword test method names to check naming convention.
Diffstat (limited to 'src/tests/efl_js')
-rw-r--r--src/tests/efl_js/benchmark_object_impl.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/efl_js/benchmark_object_impl.cc b/src/tests/efl_js/benchmark_object_impl.cc
index 538c31b2ce..2c71a06e96 100644
--- a/src/tests/efl_js/benchmark_object_impl.cc
+++ b/src/tests/efl_js/benchmark_object_impl.cc
@@ -42,9 +42,9 @@ using efl::eina::js::compatibility_return;
42using efl::eina::js::compatibility_new; 42using efl::eina::js::compatibility_new;
43 43
44#define JS_BENCHMARK_ARGS0(v) 44#define JS_BENCHMARK_ARGS0(v)
45#define JS_BENCHMARK_ARGS1(v) v 45#define JS_BENCHMARK_ARGS1(v) ,v
46#define JS_BENCHMARK_ARGS2(v) v,v 46#define JS_BENCHMARK_ARGS2(v) ,v,v
47#define JS_BENCHMARK_ARGS10(v) v,v,v,v,v,v,v,v,v,v 47#define JS_BENCHMARK_ARGS10(v) ,v,v,v,v,v,v,v,v,v,v
48#define JS_BENCHMARK_FUNC(name, number, v) \ 48#define JS_BENCHMARK_FUNC(name, number, v) \
49 compatibility_return_type js_benchmark_object_##name##arg(compatibility_callback_info_type) \ 49 compatibility_return_type js_benchmark_object_##name##arg(compatibility_callback_info_type) \
50 { \ 50 { \
@@ -55,13 +55,13 @@ using efl::eina::js::compatibility_new;
55 /* Warm */ \ 55 /* Warm */ \
56 for(int i = 0; i != 10; i++) \ 56 for(int i = 0; i != 10; i++) \
57 { \ 57 { \
58 eo_do(object, benchmark_object_##name##arg(JS_BENCHMARK_ARGS##number(v))); \ 58 benchmark_object_##name##arg(object JS_BENCHMARK_ARGS##number(v)); \
59 } \ 59 } \
60 /* Real loop */ \ 60 /* Real loop */ \
61 eina_counter_start(counter); \ 61 eina_counter_start(counter); \
62 for(int i = 0; i != 20000; i++) \ 62 for(int i = 0; i != 20000; i++) \
63 { \ 63 { \
64 eo_do(object, benchmark_object_##name##arg(JS_BENCHMARK_ARGS##number(v))); \ 64 benchmark_object_##name##arg(object JS_BENCHMARK_ARGS##number(v)); \
65 } \ 65 } \
66 eina_counter_stop(counter, 20000); \ 66 eina_counter_stop(counter, 20000); \
67 fprintf(stderr, "%s", eina_counter_dump(counter)); \ 67 fprintf(stderr, "%s", eina_counter_dump(counter)); \