forked from enlightenment/efl
36 lines
600 B
C
36 lines
600 B
C
#ifdef HAVE_CONFIG_H
|
|
# include "config.h"
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <Evas.h>
|
|
|
|
#include "evas_suite.h"
|
|
#include "evas_tests_helpers.h"
|
|
|
|
EFL_START_TEST(evas_object_various)
|
|
{
|
|
Evas *evas = EVAS_TEST_INIT_EVAS();
|
|
|
|
Evas_Object *obj = evas_object_rectangle_add(evas);
|
|
|
|
evas_object_ref(obj);
|
|
evas_free(evas);
|
|
evas_object_unref(obj);
|
|
|
|
evas = EVAS_TEST_INIT_EVAS();
|
|
efl_ref(obj);
|
|
evas_free(evas);
|
|
efl_unref(obj);
|
|
|
|
|
|
/* Twice because EVAS_TEST_INIT_EVAS inits it twice. */
|
|
}
|
|
EFL_END_TEST
|
|
|
|
void evas_test_object(TCase *tc)
|
|
{
|
|
tcase_add_test(tc, evas_object_various);
|
|
}
|