summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-02-01 16:02:56 -0800
committerCedric BAIL <cedric@osg.samsung.com>2016-02-01 16:02:56 -0800
commitc68ee163a809c67d9f3b1555586f1974ae7c9809 (patch)
treeb1d7e79fe3d8e6d42379b52006c0347c930c08ac
parentb4277ce1abfc5df532e651adf8875e7713117fb1 (diff)
downloadelementary-devs/cedric/next.tar.gz
genlist: make automatic bounce test configurable.devs/cedric/next
-rw-r--r--src/bin/test_genlist.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index b9d84b13a..ff640025a 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -39,6 +39,8 @@ enum _api_state
};
typedef enum _api_state api_state;
+static int bounce_max = 50;
+
static void
set_api_state(api_data *api)
{
@@ -299,7 +301,7 @@ _bounce_cb(void *data)
elm_genlist_item_bring_in(bounce->it2, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
else
elm_genlist_item_bring_in(bounce->it1, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
- if (bounce->state > 50)
+ if (bounce->state > bounce_max)
{
if (getenv("ELM_TEST_AUTOBOUNCE")) elm_exit();
}
@@ -414,7 +416,11 @@ test_genlist(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_i
evas_object_event_callback_add(bt, EVAS_CALLBACK_DEL, _btdel_cb, bounce);
max = 2000;
- if (getenv("ELM_TEST_AUTOBOUNCE")) max = 200;
+ if (getenv("ELM_TEST_AUTOBOUNCE"))
+ {
+ max = 200;
+ bounce_max = atoi(getenv("ELM_TEST_AUTOBOUNCE"));
+ }
for (i = 0; i < max; i++)
{
gli = elm_genlist_item_append(gl, api->itc1,