forked from enlightenment/efl
evas: fix tests to actually test image !
This commit is contained in:
parent
4c537c455c
commit
c54c2d94c2
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue