Revert "tests: add api coverage for evas image"
This reverts commit cf70826b33
.
This test cannot work right now because the fix has not landed.
This commit is contained in:
parent
ee3ffd5a49
commit
11442eca6f
|
@ -729,40 +729,6 @@ EFL_START_TEST(evas_object_image_cached_data_comparision)
|
||||||
}
|
}
|
||||||
EFL_END_TEST
|
EFL_END_TEST
|
||||||
|
|
||||||
EFL_START_TEST(evas_object_image_api)
|
|
||||||
{
|
|
||||||
Evas *e = _setup_evas();
|
|
||||||
Evas_Object *o;
|
|
||||||
void *pix;
|
|
||||||
int w, h;
|
|
||||||
|
|
||||||
o = evas_object_image_filled_add(e);
|
|
||||||
/* test file load */
|
|
||||||
evas_object_image_file_set(o, TESTS_IMG_DIR"/Light.jpg", NULL);
|
|
||||||
ck_assert(!!efl_file_get(o));
|
|
||||||
pix = evas_object_image_data_get(o, EINA_FALSE);
|
|
||||||
ck_assert(!!pix);
|
|
||||||
evas_object_image_size_get(o, &w, &h);
|
|
||||||
ck_assert(w && h);
|
|
||||||
/* test file unload */
|
|
||||||
evas_object_image_file_set(o, NULL, NULL);
|
|
||||||
ck_assert(!efl_file_get(o));
|
|
||||||
pix = evas_object_image_data_get(o, EINA_FALSE);
|
|
||||||
ck_assert(!pix);
|
|
||||||
evas_object_image_size_get(o, &w, &h);
|
|
||||||
ck_assert(!w && !h);
|
|
||||||
/* test file load after unload */
|
|
||||||
evas_object_image_file_set(o, TESTS_IMG_DIR"/Light.jpg", NULL);
|
|
||||||
ck_assert(!!efl_file_get(o));
|
|
||||||
pix = evas_object_image_data_get(o, EINA_FALSE);
|
|
||||||
ck_assert(!!pix);
|
|
||||||
evas_object_image_size_get(o, &w, &h);
|
|
||||||
ck_assert(w && h);
|
|
||||||
|
|
||||||
evas_free(e);
|
|
||||||
}
|
|
||||||
EFL_END_TEST
|
|
||||||
|
|
||||||
EFL_START_TEST(evas_object_image_defaults)
|
EFL_START_TEST(evas_object_image_defaults)
|
||||||
{
|
{
|
||||||
Evas *e = _setup_evas();
|
Evas *e = _setup_evas();
|
||||||
|
@ -1006,7 +972,6 @@ EFL_END_TEST
|
||||||
|
|
||||||
void evas_test_image_object(TCase *tc)
|
void evas_test_image_object(TCase *tc)
|
||||||
{
|
{
|
||||||
tcase_add_test(tc, evas_object_image_api);
|
|
||||||
tcase_add_test(tc, evas_object_image_defaults);
|
tcase_add_test(tc, evas_object_image_defaults);
|
||||||
tcase_add_test(tc, evas_object_image_loader);
|
tcase_add_test(tc, evas_object_image_loader);
|
||||||
tcase_add_test(tc, evas_object_image_loader_orientation);
|
tcase_add_test(tc, evas_object_image_loader_orientation);
|
||||||
|
|
Loading…
Reference in New Issue