|
KiCad PCB EDA Suite
|
#include <qa_utils/wx_utils/unit_test_utils.h>#include <qa_utils/pdf_test_utils.h>#include <board.h>#include <pcb_textbox.h>#include <pcbplot.h>#include <pcb_plot_params.h>#include <plotters/plotter_gerber.h>#include <lset.h>#include <wx/filename.h>#include <vector>Go to the source code of this file.
Classes | |
| class | RECORDING_GERBER_PLOTTER |
| struct | PCB_TEXTBOX_FIXTURE |
Functions | |
| BOOST_AUTO_TEST_CASE (GetMinSizeReturnsHeightOnly) | |
| BOOST_AUTO_TEST_CASE (GetMinSizeGrowsWithMoreText) | |
| BOOST_AUTO_TEST_CASE (GetMinSizeIncludesMargins) | |
| BOOST_AUTO_TEST_CASE (GetMinSizeHeightAtLeastTextHeight) | |
| BOOST_AUTO_TEST_CASE (GetMinSizeEmptyText) | |
| BOOST_AUTO_TEST_CASE (GetMinSizeRotated90) | |
| BOOST_AUTO_TEST_CASE (GetMinSizeAllowsWidthReduction) | |
| BOOST_AUTO_TEST_CASE (ThirtyDegreeIncrementsToCardinalKeepsVisualRotated) | |
| BOOST_AUTO_TEST_CASE (NonCardinalRotationDoesNotCrash) | |
| BOOST_AUTO_TEST_CASE (CardinalRotationsRoundTrip) | |
| BOOST_AUTO_TEST_CASE (NonCardinalRotationKeepsLibShapeRectangle) | |
| BOOST_AUTO_TEST_CASE (EmptyKnockoutPlotsTheBox) | |
| BOOST_AUTO_TEST_CASE | ( | CardinalRotationsRoundTrip | ) |
Definition at line 222 of file test_pcb_textbox.cpp.
References BOOST_CHECK_EQUAL(), DEGREES_T, pcbIUScale, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | EmptyKnockoutPlotsTheBox | ) |
Definition at line 248 of file test_pcb_textbox.cpp.
References BOOST_CHECK_EQUAL(), BOOST_REQUIRE(), GERBER_PLOTTER::EndPlot(), F_SilkS, GERBER, BOX2< Vec >::GetBottom(), BOX2< Vec >::GetLeft(), BOX2< Vec >::GetRight(), BOX2< Vec >::GetTop(), left, RECORDING_GERBER_PLOTTER::m_plottedPolys, PLOTTER::OpenFile(), pcbIUScale, PlotStandardLayer(), right, PCB_TEXTBOX::SetBorderEnabled(), PCB_SHAPE::SetEnd(), PCB_PLOT_PARAMS::SetFormat(), BOARD_ITEM::SetIsKnockout(), PCB_SHAPE::SetLayer(), PLOTTER::SetRenderSettings(), PCB_SHAPE::SetStart(), EDA_TEXT::SetText(), PCB_TEXTBOX::SetTextSize(), GERBER_PLOTTER::SetViewport(), GERBER_PLOTTER::StartPlot(), and top().
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeAllowsWidthReduction | ) |
Definition at line 164 of file test_pcb_textbox.cpp.
References BOOST_CHECK_EQUAL(), and minSize.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeEmptyText | ) |
Definition at line 129 of file test_pcb_textbox.cpp.
References BOOST_CHECK_EQUAL(), and minSize.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeGrowsWithMoreText | ) |
Definition at line 79 of file test_pcb_textbox.cpp.
References VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeHeightAtLeastTextHeight | ) |
Definition at line 118 of file test_pcb_textbox.cpp.
References minSize.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeIncludesMargins | ) |
Definition at line 92 of file test_pcb_textbox.cpp.
References BOOST_CHECK_EQUAL(), pcbIUScale, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeReturnsHeightOnly | ) |
Definition at line 70 of file test_pcb_textbox.cpp.
References BOOST_AUTO_TEST_CASE(), BOOST_CHECK_EQUAL(), and minSize.
| BOOST_AUTO_TEST_CASE | ( | GetMinSizeRotated90 | ) |
Definition at line 143 of file test_pcb_textbox.cpp.
References BOOST_CHECK_EQUAL(), DEGREES_T, VECTOR2< T >::x, and VECTOR2< T >::y.
| BOOST_AUTO_TEST_CASE | ( | NonCardinalRotationDoesNotCrash | ) |
Definition at line 204 of file test_pcb_textbox.cpp.
References DEGREES_T, BOX2< Vec >::GetHeight(), BOX2< Vec >::GetWidth(), and BOX2< Vec >::Merge().
| BOOST_AUTO_TEST_CASE | ( | NonCardinalRotationKeepsLibShapeRectangle | ) |
Definition at line 240 of file test_pcb_textbox.cpp.
| BOOST_AUTO_TEST_CASE | ( | ThirtyDegreeIncrementsToCardinalKeepsVisualRotated | ) |
Definition at line 179 of file test_pcb_textbox.cpp.
References std::abs(), DEGREES_T, BOX2< Vec >::GetHeight(), BOX2< Vec >::GetWidth(), BOX2< Vec >::Merge(), and pcbIUScale.