mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
test paint: ++CompositeMethod coverage
This commit is contained in:
parent
ddc846289c
commit
89dc7616cf
1 changed files with 10 additions and 1 deletions
|
@ -208,10 +208,19 @@ TEST_CASE("Composition", "[tvgPaint]")
|
|||
REQUIRE(shape->composite(&pComp2) == CompositeMethod::AlphaMask);
|
||||
REQUIRE(pComp == pComp2);
|
||||
|
||||
//InvAlphaMask
|
||||
comp = Shape::gen();
|
||||
pComp = comp.get();
|
||||
REQUIRE(shape->composite(move(comp), CompositeMethod::InvAlphaMask) == Result::Success);
|
||||
|
||||
REQUIRE(shape->composite(&pComp2) == CompositeMethod::InvAlphaMask);
|
||||
REQUIRE(pComp == pComp2);
|
||||
|
||||
//LumaMask
|
||||
comp = Shape::gen();
|
||||
pComp = comp.get();
|
||||
REQUIRE(shape->composite(move(comp), CompositeMethod::LumaMask) == Result::Success);
|
||||
|
||||
REQUIRE(shape->composite(&pComp2) == CompositeMethod::LumaMask);
|
||||
REQUIRE(pComp == pComp2);
|
||||
}
|
Loading…
Add table
Reference in a new issue