if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
}
}
if (button == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
evas_object_del(button);
if (TEST_FAIL == UNITEST_FUNC_NEG_RET(NULL, elm_button_add, main_win))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__,__LINE__);
}
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
}
button = elm_button_add(main_win);
if (button == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
- return;
}
}
if (fabs(time - 0.1) > DBL_EPSILON)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
if (fabs(time - 0.0) > DBL_EPSILON)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
}
button = elm_button_add(main_win);
if (button == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
- return;
}
}
if (fabs(time - 0.1) > DBL_EPSILON)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
}
button = elm_button_add(main_win);
if (button == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
- return;
}
}
if (check == EINA_FALSE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
}
elm_button_autorepeat_set(button, EINA_FALSE);
check = elm_button_autorepeat_get(button);
if (check == EINA_TRUE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
if (TEST_FAIL == UNITEST_FUNC_NEG_RET(EINA_FALSE, elm_button_autorepeat_get, button))
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__, __LINE__);
- return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
}
button = elm_button_add(main_win);
if (button == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
- return;
}
}
if (fabs(time - 1.0) > DBL_EPSILON)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
if (fabs(time - 0.0) > DBL_EPSILON)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
}
button = elm_button_add(main_win);
if (button == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
- return;
}
}
if (fabs(time - 1.0) > DBL_EPSILON)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}
if (main_win == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to create a main window..", __FILE__, __LINE__);
- return;
}
button = elm_button_add(main_win);
if (button == NULL)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Unable to add a button to the main window..", __FILE__, __LINE__);
- return;
}
}
if (check == EINA_FALSE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
}
elm_button_autorepeat_set(button, EINA_FALSE);
check = elm_button_autorepeat_get(button);
if (check == EINA_TRUE)
{
ck_abort_msg("[TEST_FAIL]:: %s[%d] : Test has failed..", __FILE__,__LINE__);
- return;
}
printf("[TEST_PASS]:: %s[%d] : Test has passed..\n", __FILE__, __LINE__);
}