mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
parent
3d672a4ea8
commit
a757e6b97d
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue