summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-10-20 14:05:05 +0900
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-12 10:15:03 +0100
commitc416ee4f16a30c86beb0127a1240cde9b8ef50a1 (patch)
tree8d75df94054717f71e3fb2cbe553afee5dbf14ea
parent7c70f1d47174e46d6a8ff48f6e4742e8f93e7afc (diff)
elm test - make automated test betetr by auto-exiting after 50 bounces
-rw-r--r--src/bin/test_genlist.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/test_genlist.c b/src/bin/test_genlist.c
index cf77362e6..2d6d6ce0b 100644
--- a/src/bin/test_genlist.c
+++ b/src/bin/test_genlist.c
@@ -304,11 +304,14 @@ _bounce_cb(void *data)
304{ 304{
305 Bounce *bounce = data; 305 Bounce *bounce = data;
306 bounce->state++; 306 bounce->state++;
307 if (bounce->state > 1) bounce->state = 0; 307 if (bounce->state & 0x1)
308 if (bounce->state == 1)
309 elm_genlist_item_bring_in(bounce->it2, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE); 308 elm_genlist_item_bring_in(bounce->it2, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
310 else 309 else
311 elm_genlist_item_bring_in(bounce->it1, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE); 310 elm_genlist_item_bring_in(bounce->it1, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
311 if (bounce->state > 50)
312 {
313 if (getenv("ELM_TEST_AUTOBOUNCE")) elm_exit();
314 }
312 return EINA_TRUE; 315 return EINA_TRUE;
313} 316}
314 317