summaryrefslogtreecommitdiff
path: root/src/tests/evas/evas_test_object.c
blob: 48770b72b1f31798873cf18b09f799f4d4147515 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif

#include <stdio.h>

#include "evas_suite.h"
#include "Evas.h"
#include "evas_tests_helpers.h"

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();
   eo_ref(obj);
   evas_free(evas);
   eo_unref(obj);


   /* Twice because EVAS_TEST_INIT_EVAS inits it twice. */
   evas_shutdown();
   evas_shutdown();
}
END_TEST

void evas_test_object(TCase *tc)
{
   tcase_add_test(tc, evas_object_various);
}