Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

[TestSvgParser] Keep QEXPECT_FAIL for the basic case without round-trip

Dmitry Kazakovab9caaba4031
diff --git a/libs/flake/tests/TestSvgParser.cpp b/libs/flake/tests/TestSvgParser.cpp
index a987c57b5f..154cd1149c 100644
--- a/libs/flake/tests/TestSvgParser.cpp
+++ b/libs/flake/tests/TestSvgParser.cpp
@@ -1418,7 +1418,11 @@ void TestSvgParser::testRenderFillLinearGradientTransparent()
SvgRenderTester t(data);
t.setCheckQImagePremultiplied(true);
+#if defined USE_ROUND_TRIP || defined USE_CLONED_SHAPES
QSKIP("TODO: Krita forces all gradients to work in premultiplied space, which is against SVG spec");
+#else
+ QEXPECT_FAIL("", "TODO: Krita forces all gradients to work in premultiplied space, which is against SVG spec", Abort);
+#endif
t.test_standard_30px_72ppi("fill_gradient_transparent", false);
}
@@ -1486,7 +1490,11 @@ void TestSvgParser::testRenderFillRadialGradientTransparent()
SvgRenderTester t(data);
t.setFuzzyThreshold(1);
t.setCheckQImagePremultiplied(true);
+#if defined USE_ROUND_TRIP || defined USE_CLONED_SHAPES
QSKIP("TODO: Krita forces all gradients to work in premultiplied space, which is against SVG spec");
+#else
+ QEXPECT_FAIL("", "TODO: Krita forces all gradients to work in premultiplied space, which is against SVG spec", Abort);
+#endif
t.test_standard_30px_72ppi("fill_gradient_radial_transparent", false);
}