mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
utc: increase coverage up #1
This commit is contained in:
parent
3a05ae4c01
commit
d82b088b7a
2 changed files with 5 additions and 1 deletions
|
@ -34,7 +34,7 @@
|
|||
<stop offset="100%" stop-color="#252f35"/>
|
||||
</linearGradient>
|
||||
<radialGradient id="grad2" cx="100%" cy="0.25" r="1.5" gradientTransform="scale(1)">
|
||||
<stop offset="0%" stop-color="#50585d"/>
|
||||
<stop offset="0%" stop-color="#252f35" stop-opacity="80%"/>
|
||||
<stop offset="100%" stop-color="#252f35"/>
|
||||
</radialGradient>
|
||||
<mask id="vg">
|
||||
|
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.3 KiB |
|
@ -217,6 +217,8 @@ TEST_CASE("Load SVG file and render", "[tvgPicture]")
|
|||
REQUIRE(picture->load(TEST_DIR"/tag.svg") == Result::Success);
|
||||
|
||||
REQUIRE(canvas->push(move(picture)) == Result::Success);
|
||||
REQUIRE(canvas->draw() == Result::Success);
|
||||
REQUIRE(canvas->sync() == Result::Success);
|
||||
|
||||
REQUIRE(Initializer::term(CanvasEngine::Sw) == Result::Success);
|
||||
}
|
||||
|
@ -235,6 +237,8 @@ TEST_CASE("Load PNG file and render", "[tvgPicture]")
|
|||
REQUIRE(picture);
|
||||
|
||||
REQUIRE(picture->load(TEST_DIR"/test.png") == Result::Success);
|
||||
REQUIRE(picture->opacity(192) == Result::Success);
|
||||
REQUIRE(picture->scale(5.0) == Result::Success);
|
||||
|
||||
REQUIRE(canvas->push(move(picture)) == Result::Success);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue