Update svg unit tests post 831e353c5d

This commit is contained in:
Artem Pavlenko 2019-05-14 10:50:10 +01:00
parent 201268334d
commit f04ab0cbae

View file

@ -666,8 +666,8 @@ TEST_CASE("SVG parser") {
std::string svg_name("./test/data/svg/gradient-nodef.svg"); std::string svg_name("./test/data/svg/gradient-nodef.svg");
char const* expected_errors[] = char const* expected_errors[] =
{ {
"SVG parse error: failed to locate <gradient> fill with <id> \"MyGradient\"", "SVG parse error: failed to locate fill with <id> \"MyGradient\"",
"SVG parse error: failed to locate <gradient> stroke with <id> \"MyGradient\"" "SVG parse error: failed to locate stroke with <id> \"MyGradient\""
}; };
{ {
test_parser p; test_parser p;
@ -692,8 +692,8 @@ TEST_CASE("SVG parser") {
std::string svg_name("./test/data/svg/gradient-no-id.svg"); std::string svg_name("./test/data/svg/gradient-no-id.svg");
char const* expected_errors[] = char const* expected_errors[] =
{ {
"SVG parse error: failed to locate <gradient> fill with <id> \"MyGradient\"", "SVG parse error: failed to locate fill with <id> \"MyGradient\"",
"SVG parse error: failed to locate <gradient> stroke with <id> \"MyGradient\"" "SVG parse error: failed to locate stroke with <id> \"MyGradient\""
}; };
std::ifstream in(svg_name.c_str()); std::ifstream in(svg_name.c_str());