Hermet Park
d359d65640
test capi: ++coverage
...
added jpg, tvg tests
2023-04-06 19:54:54 +09:00
Hermet Park
f0ae3e9cee
test: fix broken plugin support.
...
The thorvg test should not attempt to perform features
that were not enabled, as this will cause them to fail.
@Issues: https://github.com/thorvg/thorvg/issues/1251
2023-04-06 19:47:10 +09:00
Hermet Park
9b3c34c3b1
updated copyright.
2023-01-14 13:48:11 +09:00
Mira Grudzinska
1980d9d0e3
all: Trailing spaces removed
2023-01-07 10:53:51 +09:00
Rémi Verschelde
46c3fc1f94
Format code files with dos2unix, ensure newline at EOF
2022-07-10 23:21:05 +09:00
Hermet Park
f0141e63de
updated copyright date.
2022-01-12 14:08:48 +09:00
JunsuChoi
80cc0177fb
test capiSwCanvas: remove a invalid test case.
...
This test depends on the machine environment.
it's not guaranteed the same result so we remove it.
2021-11-22 13:29:07 +09:00
Hermet Park
4587a39f46
test capi: fix the memory leak.
...
target is dangled without any proper deletion...
2021-11-09 15:05:55 +09:00
Hermet Park
de353401a7
Revert "test capi: fix memory leak."
...
This reverts commit 651a98a2d8
.
Applied the alternative solution instead of this patch.
37e39866dd
2021-11-09 14:55:54 +09:00
Hermet Park
74413a989f
common paint: fix a memory leak.
...
delete dangling object properly in the corner case.
Unfortunately, this brings to correct the capi test cases.
we assume the paints is deleted whenever its result is successful or not.
@Issue: https://github.com/Samsung/thorvg/issues/995
2021-11-09 14:51:32 +09:00
JunsuChoi
00bba39b02
test Array: Remove too big size test
...
On large memory machines, if machine have enough memory,
tests failed because it doesn't return null.
2021-11-09 14:04:42 +09:00
Mira Grudzinska
8608238343
tests: capi - buffer was not freed
2021-11-08 12:27:23 +09:00
Hermet Park
651a98a2d8
test capi: fix memory leak.
...
Delete the paint which is not committed properly.
2021-11-06 01:46:42 +01:00
Mira Grudzinska
2780d77a52
capi: tvg_paint_transform -> tvg_paint_set_transform
2021-10-26 19:20:15 +09:00
Mira Grudzinska
1006cbd0d8
tests: added Capis gradient transformation tests
2021-10-25 19:35:00 +09:00
Mira Grudzinska
78b7b278c0
tests: saver capis added into the tests
2021-10-13 21:25:44 +09:00
Mira Grudzinska
e6debdbf15
capi: tvg_swcanvas_set_mempool capi added ( #903 )
...
* capi: tvg_swcanvas_set_mempool capi added
* tests: tvg_swcanvas_set_mempool added to the tests
2021-10-13 19:31:39 +09:00
Mira Grudzinska
a4d2a99c03
tests: tvg_gradient_duplicate added to the capi tests
2021-10-13 18:34:02 +09:00
Mira Grudzinska
304a351dcc
tests: added tests for size and composite C apis
2021-10-07 15:03:28 +09:00
Hermet Park
9737dd4a89
test capi: update tvg_paint_get_bounds() utc.
...
The api has been changed by 060564cc93
update it according its change.
2021-10-06 22:17:18 +09:00
Projectitis
591ea1d61c
Changes to support MSVC
2021-09-29 22:56:52 +09:00
bchrescionko
a50ccbb0c6
test: added test for tvg_picture_get_viewbox function
2021-09-24 21:08:59 +09:00
Michal Maciola
cff8815404
loaders: Pass mimetype to picture::load
...
* loaders: Pass mimetype to picture::load
Added mimetype attribute to enfaster loading using a proper loader.
@Changed api: Picture::load(const char* data, uint32_t size, const std::string& mimeType, bool copy = false)
@issue: #571
2021-08-05 11:02:26 +09:00
Hermet Park
5e52134e2a
dexample Picture: improve the test coverage.
...
In this patch, it replaced the test images with Lenna.
and fix the wrong jpeg file size figuring.
2021-07-30 12:09:59 +09:00
Hermet Park
f7f241cff5
common picture: remove viewbox() api.
...
picture provides size() interface to return the image size,
viewbox() is conceptually not correct with the Picture.
Remove it under the beta api.
2021-07-28 13:07:43 +09:00
Hermet Park
94eeb92dbe
infra: seprate test image resources from the examples.
...
change for removing dependency.
2021-07-19 14:43:26 +09:00
Michal Maciola
58ad09a07a
test capi: added missing canvas, paint and shape tests
...
Added tests for tvg_canvas_reserve, tvg_canvas_update_paint, tvg_paint_duplicate, tvg_paint_set_composite_method, tvg_shape_cubic_to, tvg_shape_close
2021-07-16 00:34:54 +09:00
Michal Maciola
9bfacf2256
test capi: Stroke Radial Gradient
...
Added tvg_shape_get_gradient
2021-07-16 00:32:41 +09:00
Michal Maciola
ba1a38ed39
test capi: Stroke Linear Gradient fix #2
2021-07-15 16:06:11 +09:00
Michal Maciola
a757e6b97d
test capi: Stroke Linear Gradient fix #1
...
Added tvg_shape_get_gradient
2021-07-15 16:06:11 +09:00
Michal Maciola
3d672a4ea8
test capi: Stroke Linear Gradient
2021-07-15 16:06:11 +09:00
Michal Maciola
9b276cc5fa
test capi: scene added negative tests
2021-07-14 23:22:09 +09:00
Hermet Park
30f4beacf5
test capi: complement scene test cases.
2021-07-08 18:41:04 +09:00
jykeon
60b9bc136c
tests capi: Add capi Scene TC.
2021-07-08 17:35:19 +09:00
Hermet Park
a5d2950902
test capi: code refactoring
...
use catch Approx functions to compare floating-point values.
2021-07-03 16:51:50 +09:00
Hermet Park
009c475fc9
test capi: add Picture unit test
2021-07-03 15:34:43 +09:00
Hermet Park
20c68e3b37
test capi: code refactoring.
...
keep the coding consistency, no logical changes.
Also, renamed tests to avoid conflicts duplicated names.
2021-06-17 14:57:06 +09:00
Michal Szczecinski
bde0d8e751
utc capi: Added linear gradient tests.
2021-06-17 14:47:35 +09:00
Hermet Park
25b31d9154
test capi: code refactoring.
...
keep the coding consistency, no logical changes.
2021-06-17 14:38:27 +09:00
Michal Szczecinski
2b78d58c23
utc capi: Added radial gradient tests.
2021-06-17 14:07:11 +09:00
Michal Maciola
858de0febb
utc capi: added capiSwCanvas test cases
2021-06-16 20:48:15 +09:00
Hermet Park
c19aa9fed7
tset capi: code refactoring.
...
revise coding style.
2021-06-16 12:53:26 +09:00
Hermet Park
fe493a93f2
test capi: fix build infrastructure
2021-06-16 12:22:08 +09:00
mmaciola
3f1b08f050
utc capi: Added capi initializer, canvas, paint and shape utc
2021-06-16 12:16:59 +09:00
Hermet Park
90dd1b5f98
tests capi: revise the show-case & infrastructure.
2021-06-12 02:11:01 +09:00
Michal Szczecinski
5b99bc186d
utc capi: Added shape fill utc.
2021-06-11 23:42:03 +09:00