static void _play_update_cb(void *data, Evas_Object *obj, void *event_info)
{
Evas_Object *anim_view = data;
- double current_progress;
+ int current_frame;
- current_progress = elm_animation_view_progress_get(anim_view);
- if (current_progress > 0.5)
+ current_frame = elm_animation_view_frame_get(anim_view);
+ if (current_frame > (int)((elm_animation_view_frame_count_get(anim_view) - 1) * 0.5))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
* @step 2 Check current last progress
* @step 2 Call elm_animation_view_play
* @step 3 Run the main loop
- * @step 4 Check current progress whenever "play,update" callback is called
+ * @step 4 Check current frame whenever "play,update" callback is called
*
* @passcondition
* @li Test passes if default last progress is 1.0 and there is no segmentation fault
* @li Test passes if last progress is changed to 0.5 after setting it to 0.5
- * @li Test passes if current progress is not bigger than 0.5 whenever "play,update" is called
+ * @li Test passes if current frame is not bigger than 0.5 * total frame whenever "play,update" is called
* @}
*/
START_TEST(utc_elm_animation_view_max_progress_get_set_p)
static void _play_update_cb(void *data, Evas_Object *obj, void *event_info)
{
Evas_Object *anim_view = data;
- double current_progress;
+ int current_frame;
- current_progress = elm_animation_view_progress_get(anim_view);
- if (current_progress < 0.5)
+ current_frame = elm_animation_view_frame_get(anim_view);
+ if (current_frame < (int)((elm_animation_view_frame_count_get(anim_view) - 1) * 0.5))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
return;
* @step 2 Check current start progress
* @step 2 Call elm_animation_view_play
* @step 3 Run the main loop
- * @step 4 Check current progress whenever "play,update" callback is called
+ * @step 4 Check current frame whenever "play,update" callback is called
*
* @passcondition
* @li Test passes if default start progress is 0.0 and there is no segmentation fault
* @li Test passes if start progress is changed to 0.5 after setting it to 0.5
- * @li Test passes if current progress is not less than 0.5 whenever "play,update" is called
+ * @li Test passes if current frame is not less than 0.5 * total frame whenever "play,update" is called
* @}
*/
START_TEST(utc_elm_animation_view_min_progress_get_set_p)