mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 05:33:36 +00:00
tests: capi test for tvg_shape_set_paint_order
This commit is contained in:
parent
2309a48369
commit
ca0f30c4c0
1 changed files with 13 additions and 0 deletions
|
@ -272,3 +272,16 @@ TEST_CASE("Fill rule", "[capiFillRule]")
|
|||
|
||||
REQUIRE(tvg_paint_del(paint) == TVG_RESULT_SUCCESS);
|
||||
}
|
||||
|
||||
TEST_CASE("Paint order", "[capiPaintOrder]")
|
||||
{
|
||||
Tvg_Paint* paint = tvg_shape_new();
|
||||
REQUIRE(paint);
|
||||
|
||||
REQUIRE(tvg_shape_set_paint_order(nullptr, true) == TVG_RESULT_INVALID_ARGUMENT);
|
||||
REQUIRE(tvg_shape_set_paint_order(paint, true) == TVG_RESULT_SUCCESS);
|
||||
REQUIRE(tvg_shape_set_paint_order(paint, false) == TVG_RESULT_SUCCESS);
|
||||
|
||||
REQUIRE(tvg_paint_del(paint) == TVG_RESULT_SUCCESS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue