From d67517337c09841d1c6008470f8fd67d821d0a41 Mon Sep 17 00:00:00 2001 From: Mira Grudzinska Date: Tue, 5 Oct 2021 16:36:41 +0200 Subject: [PATCH] tests: ++LOC svg loader, tvg saver --- test/images/tag.svg | 12 ++++++------ test/testPicture.cpp | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/test/images/tag.svg b/test/images/tag.svg index 54e20515..f38ca4d8 100644 --- a/test/images/tag.svg +++ b/test/images/tag.svg @@ -1,8 +1,8 @@ - + - + @@ -29,13 +29,13 @@ - + - + - + @@ -49,4 +49,4 @@ - \ No newline at end of file + diff --git a/test/testPicture.cpp b/test/testPicture.cpp index 3ca2c6ba..6a52fd62 100644 --- a/test/testPicture.cpp +++ b/test/testPicture.cpp @@ -276,6 +276,7 @@ TEST_CASE("Load SVG file and render", "[tvgPicture]") REQUIRE(picture); REQUIRE(picture->load(TEST_DIR"/tag.svg") == Result::Success); + REQUIRE(picture->size(100, 100) == Result::Success); REQUIRE(canvas->push(move(picture)) == Result::Success); REQUIRE(canvas->draw() == Result::Success);