projects
/
platform
/
core
/
graphics
/
tizenvg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b37deeb
)
test capi: Stroke Linear Gradient fix #1
author
Michal Maciola
<m.maciola@samsung.com>
Wed, 14 Jul 2021 08:40:40 +0000
(10:40 +0200)
committer
Hermet Park
<chuneon.park@samsung.com>
Mon, 19 Jul 2021 03:00:12 +0000
(12:00 +0900)
Added tvg_shape_get_gradient
test/capi/capiLinearGradient.cpp
patch
|
blob
|
history
diff --git
a/test/capi/capiLinearGradient.cpp
b/test/capi/capiLinearGradient.cpp
index
86c6f34
..
b2bf1f4
100644
(file)
--- a/
test/capi/capiLinearGradient.cpp
+++ b/
test/capi/capiLinearGradient.cpp
@@
-60,6
+60,10
@@
TEST_CASE("Linear Gradient in shape", "[capiLinearGradient]")
REQUIRE(tvg_shape_set_linear_gradient(shape, gradient) == TVG_RESULT_SUCCESS);
+ Tvg_Gradient *gradient_ret = NULL;
+ REQUIRE(tvg_shape_get_gradient(shape, &gradient_ret) == TVG_RESULT_SUCCESS);
+ REQUIRE(gradient_ret);
+
REQUIRE(tvg_shape_set_linear_gradient(shape, NULL) == TVG_RESULT_MEMORY_CORRUPTION);
REQUIRE(tvg_paint_del(shape) == TVG_RESULT_SUCCESS);
}