KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_svg_plotter.cpp File Reference
#include <qa_utils/wx_utils/unit_test_utils.h>
#include <qa_utils/file_utils.h>
#include <qa_utils/svg_test_utils.h>
#include <wx/ffile.h>
#include <page_info.h>
#include <plotters/plotters_pslike.h>
#include <memory>
#include <set>
#include <string>
#include <vector>

Go to the source code of this file.

Functions

 BOOST_AUTO_TEST_CASE (FillOpacityMatchesColorAlpha)
 
 BOOST_AUTO_TEST_CASE (FillOpacityFullyOpaque)
 
 BOOST_AUTO_TEST_CASE (FillOpacityPreservedThroughSetColor)
 
 BOOST_AUTO_TEST_CASE (StrokeOpacityMatchesColorAlpha)
 
 BOOST_AUTO_TEST_CASE (DefaultPlotViewBoxIsOrigin, *kSvgValTol)
 
 BOOST_AUTO_TEST_CASE (MirroredSvgPreservesPlotOrigin, *kSvgValTol)
 
 BOOST_AUTO_TEST_CASE (FitToBoardUsesViewBox, *kSvgValTol)
 
 BOOST_AUTO_TEST_CASE (MirroredFitToBoardUsesMirroredViewBox, *kSvgValTol)
 

Variables

static const auto kSvgValTol = utf::tolerance( 0.00001 )
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/8]

BOOST_AUTO_TEST_CASE ( DefaultPlotViewBoxIsOrigin ,
* kSvgValTol )

◆ BOOST_AUTO_TEST_CASE() [2/8]

BOOST_AUTO_TEST_CASE ( FillOpacityFullyOpaque )

Definition at line 178 of file test_svg_plotter.cpp.

References BOOST_CHECK_EQUAL().

◆ BOOST_AUTO_TEST_CASE() [3/8]

BOOST_AUTO_TEST_CASE ( FillOpacityMatchesColorAlpha )

Definition at line 168 of file test_svg_plotter.cpp.

References BOOST_AUTO_TEST_CASE(), and BOOST_CHECK_EQUAL().

◆ BOOST_AUTO_TEST_CASE() [4/8]

BOOST_AUTO_TEST_CASE ( FillOpacityPreservedThroughSetColor )

Definition at line 190 of file test_svg_plotter.cpp.

References BOOST_CHECK_EQUAL(), BOOST_TEST_CONTEXT(), and expected.

◆ BOOST_AUTO_TEST_CASE() [5/8]

BOOST_AUTO_TEST_CASE ( FitToBoardUsesViewBox ,
* kSvgValTol )

◆ BOOST_AUTO_TEST_CASE() [6/8]

BOOST_AUTO_TEST_CASE ( MirroredFitToBoardUsesMirroredViewBox ,
* kSvgValTol )

◆ BOOST_AUTO_TEST_CASE() [7/8]

BOOST_AUTO_TEST_CASE ( MirroredSvgPreservesPlotOrigin ,
* kSvgValTol )

◆ BOOST_AUTO_TEST_CASE() [8/8]

BOOST_AUTO_TEST_CASE ( StrokeOpacityMatchesColorAlpha )

Definition at line 215 of file test_svg_plotter.cpp.

References BOOST_CHECK_EQUAL().

Variable Documentation

◆ kSvgValTol

const auto kSvgValTol = utf::tolerance( 0.00001 )
static