mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
test_capi: Add missing *_del api
This commit is contained in:
parent
78c5034229
commit
6d16713ce9
2 changed files with 7 additions and 1 deletions
|
@ -160,6 +160,9 @@ TEST_CASE("Linear Gradient identifier", "[capiLinearGradient]")
|
|||
REQUIRE(tvg_gradient_get_identifier(grad, &id) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(tvg_gradient_get_identifier(grad_copy, &id_copy) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(id_copy == id);
|
||||
|
||||
REQUIRE(tvg_gradient_del(grad_copy) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(tvg_gradient_del(grad) == TVG_RESULT_SUCCESS);
|
||||
}
|
||||
|
||||
TEST_CASE("Linear Gradient clear data", "[capiLinearGradient]")
|
||||
|
|
|
@ -224,6 +224,9 @@ TEST_CASE("Paint Identifier", "[capiPaint]")
|
|||
REQUIRE(tvg_paint_get_identifier(paint, &id) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(tvg_paint_get_identifier(paint_copy, &id_copy) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(id_copy == id);
|
||||
|
||||
REQUIRE(tvg_paint_del(paint_copy) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(tvg_paint_del(paint) == TVG_RESULT_SUCCESS);
|
||||
}
|
||||
|
||||
TEST_CASE("Paint Clip Path Composite Method", "[capiPaint]")
|
||||
|
@ -332,4 +335,4 @@ TEST_CASE("Paint LumaMask Composite Method", "[capiPaint]")
|
|||
REQUIRE(target2 == target3);
|
||||
|
||||
REQUIRE(tvg_paint_del(paint) == TVG_RESULT_SUCCESS);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue