evas: fix tests to actually test image !

This commit is contained in:
Cedric BAIL 2015-01-26 11:01:44 +01:00
parent 4c537c455c
commit c54c2d94c2
1 changed files with 3 additions and 3 deletions

View File

@ -359,7 +359,7 @@ START_TEST(evas_object_image_all_loader_data)
int w, h, r_w, r_h;
const uint32_t *d, *r_d;
fprintf(stderr, "testing '%s'\n", exts[i]);
eina_strbuf_reset(str);
eina_strbuf_append_printf(str, "%s/Pic4-%s.png", TESTS_IMG_DIR, exts[i]);
@ -378,8 +378,6 @@ START_TEST(evas_object_image_all_loader_data)
evas_object_image_size_get(ref, &r_w, &r_h);
r_d = evas_object_image_data_get(ref, EINA_FALSE);
eina_strbuf_reset(str);
fail_if(w != r_w || h != r_h);
fail_if(memcmp(d, r_d, w * h * 4));
}
@ -387,6 +385,8 @@ START_TEST(evas_object_image_all_loader_data)
evas_object_del(obj);
evas_object_del(ref);
eina_strbuf_free(str);
evas_free(e);
evas_shutdown();
}