|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <import_gfx/svg_import_plugin.h>#include <import_gfx/graphics_importer_buffer.h>#include <eda_item.h>#include <base_units.h>#include <nanosvg.h>#include <nanosvgrast.h>#include <memory>#include <fontconfig/fontconfig.h>#include <paths.h>Go to the source code of this file.
Classes | |
| class | SVG_IMPORT_TEST_IMPORTER |
Functions | |
| BOOST_AUTO_TEST_CASE (SingleNodeClosedPath) | |
| Regression test for https://gitlab.com/kicad/code/kicad/-/issues/11445. | |
| BOOST_AUTO_TEST_CASE (MultiNodeClosedPath) | |
| Verify that a normal multi-node closed path still imports correctly after the single-node fix. | |
| BOOST_AUTO_TEST_CASE (TextOutlinesRasterize) | |
| BOOST_AUTO_TEST_CASE (TextEntitiesAndCdata) | |
| BOOST_AUTO_TEST_CASE (TextPositionListsAndSpans) | |
| BOOST_AUTO_TEST_CASE (TextAnchorCoversSpans) | |
| BOOST_AUTO_TEST_CASE (TextTransformsAndInheritedStyle) | |
| BOOST_AUTO_TEST_CASE (UpdatedParserPreservesLocalDefaults) | |
| BOOST_AUTO_TEST_CASE (TextWhitespaceAndFontVariants) | |
| BOOST_AUTO_TEST_CASE (DefinitionsDoNotConsumeTextState) | |
| BOOST_AUTO_TEST_CASE (InvalidNumericEntitiesStayLiteral) | |
| BOOST_AUTO_TEST_CASE | ( | DefinitionsDoNotConsumeTextState | ) |
Definition at line 374 of file test_svg_import.cpp.
References BOOST_CHECK_EQUAL(), and BOOST_REQUIRE().
| BOOST_AUTO_TEST_CASE | ( | InvalidNumericEntitiesStayLiteral | ) |
Definition at line 398 of file test_svg_import.cpp.
References BOOST_REQUIRE().
| BOOST_AUTO_TEST_CASE | ( | MultiNodeClosedPath | ) |
Verify that a normal multi-node closed path still imports correctly after the single-node fix.
Definition at line 166 of file test_svg_import.cpp.
References BOOST_REQUIRE(), SVG_IMPORT_PLUGIN::Import(), SVG_IMPORT_PLUGIN::LoadFromMemory(), SVG_IMPORT_TEST_IMPORTER::m_polygons, and GRAPHICS_IMPORT_PLUGIN::SetImporter().
| BOOST_AUTO_TEST_CASE | ( | SingleNodeClosedPath | ) |
Regression test for https://gitlab.com/kicad/code/kicad/-/issues/11445.
A closed SVG path with a single anchor node (one cubic bezier from a point back to itself) was not imported because the adaptive bezier subdivision failed when start == end, producing only degenerate zero-area polygons.
Definition at line 103 of file test_svg_import.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_REQUIRE(), SVG_IMPORT_PLUGIN::Import(), SVG_IMPORT_PLUGIN::LoadFromMemory(), SVG_IMPORT_TEST_IMPORTER::m_polygons, and GRAPHICS_IMPORT_PLUGIN::SetImporter().
| BOOST_AUTO_TEST_CASE | ( | TextAnchorCoversSpans | ) |
Definition at line 289 of file test_svg_import.cpp.
References BOOST_REQUIRE(), and end.
| BOOST_AUTO_TEST_CASE | ( | TextEntitiesAndCdata | ) |
Definition at line 253 of file test_svg_import.cpp.
References BOOST_CHECK_EQUAL(), and BOOST_REQUIRE().
| BOOST_AUTO_TEST_CASE | ( | TextOutlinesRasterize | ) |
Definition at line 233 of file test_svg_import.cpp.
References BOOST_REQUIRE(), and image.
| BOOST_AUTO_TEST_CASE | ( | TextPositionListsAndSpans | ) |
Definition at line 275 of file test_svg_import.cpp.
References BOOST_REQUIRE(), and image.
| BOOST_AUTO_TEST_CASE | ( | TextTransformsAndInheritedStyle | ) |
Definition at line 316 of file test_svg_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and image.
| BOOST_AUTO_TEST_CASE | ( | TextWhitespaceAndFontVariants | ) |
Definition at line 350 of file test_svg_import.cpp.
References BOOST_REQUIRE().
| BOOST_AUTO_TEST_CASE | ( | UpdatedParserPreservesLocalDefaults | ) |
Definition at line 333 of file test_svg_import.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), and image.