Mercurial > MadButterfly
annotate src/testcase.c @ 1395:a768d74e5f49
Fix the svg:use. For a svg:use, it is a group which include the content it reference. It means that we can not tween it to its origin object directly. Instead, we need to ungroup it and then use the result matrix to generate the tweened transformation matrix. Therefore, we need to concate its matrix to the referenced object.
Ad center object when the bbox-x is not available.
author | wycc |
---|---|
date | Sat, 02 Apr 2011 05:36:36 +0800 |
parents | 586e50f82c1f |
children |
rev | line source |
---|---|
822
586e50f82c1f
Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
410
diff
changeset
|
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*- |
586e50f82c1f
Unify coding style tag for emacs and vim.
Shih-Yuan Lee (FourDollars) <fourdollars@gmail.com>
parents:
410
diff
changeset
|
2 // vim: sw=4:ts=8:sts=4 |
1 | 3 #include <CUnit/Basic.h> |
4 | |
12 | 5 extern CU_pSuite get_tools_suite(void); |
1 | 6 extern CU_pSuite get_coord_suite(void); |
5
9c331ec9e210
SVG path is partially supported
Thinker K.F. Li <thinker@branda.to>
parents:
1
diff
changeset
|
7 extern CU_pSuite get_geo_suite(void); |
9c331ec9e210
SVG path is partially supported
Thinker K.F. Li <thinker@branda.to>
parents:
1
diff
changeset
|
8 extern CU_pSuite get_shape_path_suite(void); |
12 | 9 extern CU_pSuite get_redraw_man_suite(void); |
50 | 10 extern CU_pSuite get_animate_suite(void); |
73
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
50
diff
changeset
|
11 extern CU_pSuite get_observer_suite(void); |
235 | 12 extern CU_pSuite get_event_suite(void); |
410
1a923ea699c1
shape_stext.c, now, is unittested.
Thinker K.F. Li <thinker@branda.to>
parents:
235
diff
changeset
|
13 extern CU_pSuite get_stext_suite(void); |
1 | 14 |
15 int | |
16 main(int argc, char * const argv[]) { | |
17 CU_pSuite suite; | |
18 | |
19 if(CU_initialize_registry() != CUE_SUCCESS) | |
20 return CU_get_error(); | |
21 | |
12 | 22 suite = get_tools_suite(); |
23 if(suite == NULL) | |
24 return CU_get_error(); | |
25 suite = get_coord_suite(); | |
26 if(suite == NULL) | |
27 return CU_get_error(); | |
28 suite = get_geo_suite(); | |
29 if(suite == NULL) | |
30 return CU_get_error(); | |
31 suite = get_shape_path_suite(); | |
32 if(suite == NULL) | |
33 return CU_get_error(); | |
34 suite = get_redraw_man_suite(); | |
35 if(suite == NULL) | |
36 return CU_get_error(); | |
50 | 37 suite = get_animate_suite(); |
38 if(suite == NULL) | |
39 return CU_get_error(); | |
73
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
50
diff
changeset
|
40 suite = get_observer_suite(); |
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
50
diff
changeset
|
41 if(suite == NULL) |
9ab15ebc9061
Observer for mouse events
Thinker K.F. Li <thinker@branda.to>
parents:
50
diff
changeset
|
42 return CU_get_error(); |
235 | 43 suite = get_event_suite(); |
44 if(suite == NULL) | |
45 return CU_get_error(); | |
410
1a923ea699c1
shape_stext.c, now, is unittested.
Thinker K.F. Li <thinker@branda.to>
parents:
235
diff
changeset
|
46 suite = get_stext_suite(); |
1a923ea699c1
shape_stext.c, now, is unittested.
Thinker K.F. Li <thinker@branda.to>
parents:
235
diff
changeset
|
47 if(suite == NULL) |
1a923ea699c1
shape_stext.c, now, is unittested.
Thinker K.F. Li <thinker@branda.to>
parents:
235
diff
changeset
|
48 return CU_get_error(); |
1 | 49 |
50 CU_basic_set_mode(CU_BRM_VERBOSE); | |
51 CU_basic_run_tests(); | |
52 CU_cleanup_registry(); | |
53 | |
54 return CU_get_error(); | |
55 } |