|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <algorithm>#include <base_units.h>#include <eda_text.h>#include <gr_text.h>#include <text_var_dependency.h>Go to the source code of this file.
Functions | |
| static EDA_TEXT | makeText200 () |
| BOOST_AUTO_TEST_CASE (Compare) | |
| BOOST_AUTO_TEST_CASE (BoldFlagLeavesStoredThicknessAlone) | |
| BOOST_AUTO_TEST_CASE (EffectiveWidthAppliesBoldMultiplierForStroke) | |
| BOOST_AUTO_TEST_CASE (EffectiveWidthAutoBoldMatchesLegacy) | |
| BOOST_AUTO_TEST_CASE (MigrateLegacyBoldStrokeWidthRecoversBase) | |
| BOOST_AUTO_TEST_CASE (AutoThicknessOffFreezesBaseNotEffective) | |
| BOOST_AUTO_TEST_CASE (TextVarReferences_EmptyWhenNoVars) | |
| BOOST_AUTO_TEST_CASE (TextVarReferences_CapturedAfterSetText) | |
| BOOST_AUTO_TEST_CASE (TextVarReferences_InvalidatedOnRetext) | |
| BOOST_AUTO_TEST_CASE (TextVarReferences_StableReferenceBetweenReads) | |
| BOOST_AUTO_TEST_CASE (TextVarReferences_EscapedLiteralNotEdge) | |
| BOOST_AUTO_TEST_CASE | ( | AutoThicknessOffFreezesBaseNotEffective | ) |
Definition at line 150 of file test_eda_text.cpp.
References BOOST_CHECK_EQUAL(), EDA_TEXT::GetEffectiveTextPenWidth(), GetPenSizeForNormal(), EDA_TEXT::GetTextThickness(), EDA_TEXT::GetTextWidth(), makeText200(), EDA_TEXT::SetAutoThickness(), EDA_TEXT::SetBoldFlag(), and EDA_TEXT::SetTextThickness().
| BOOST_AUTO_TEST_CASE | ( | BoldFlagLeavesStoredThicknessAlone | ) |
Definition at line 77 of file test_eda_text.cpp.
References BOOST_CHECK_EQUAL(), EDA_TEXT::GetTextThickness(), EDA_TEXT::IsBold(), makeText200(), EDA_TEXT::SetBold(), EDA_TEXT::SetBoldFlag(), and EDA_TEXT::SetTextThickness().
| BOOST_AUTO_TEST_CASE | ( | Compare | ) |
Definition at line 42 of file test_eda_text.cpp.
References BOOST_CHECK_EQUAL(), EDA_TEXT::SetText(), EDA_TEXT::SetTextPos(), and unityScale.
| BOOST_AUTO_TEST_CASE | ( | EffectiveWidthAppliesBoldMultiplierForStroke | ) |
Definition at line 93 of file test_eda_text.cpp.
References BOOST_CHECK_EQUAL(), EDA_TEXT::GetEffectiveTextPenWidth(), makeText200(), EDA_TEXT::SetBoldFlag(), and EDA_TEXT::SetTextThickness().
| BOOST_AUTO_TEST_CASE | ( | EffectiveWidthAutoBoldMatchesLegacy | ) |
Definition at line 106 of file test_eda_text.cpp.
References BOOST_CHECK_EQUAL(), EDA_TEXT::GetEffectiveTextPenWidth(), GetPenSizeForBold(), EDA_TEXT::GetTextWidth(), makeText200(), EDA_TEXT::SetBoldFlag(), and EDA_TEXT::SetTextThickness().
| BOOST_AUTO_TEST_CASE | ( | MigrateLegacyBoldStrokeWidthRecoversBase | ) |
Definition at line 116 of file test_eda_text.cpp.
References BOOST_CHECK_EQUAL(), EDA_TEXT::GetEffectiveTextPenWidth(), EDA_TEXT::GetTextThickness(), makeText200(), EDA_TEXT::MigrateLegacyBoldStrokeWidth(), normal, EDA_TEXT::SetBoldFlag(), and EDA_TEXT::SetTextThickness().
| BOOST_AUTO_TEST_CASE | ( | TextVarReferences_CapturedAfterSetText | ) |
Definition at line 174 of file test_eda_text.cpp.
References TEXT_VAR_REF_KEY::CROSS_REF, EDA_TEXT::GetTextVarReferences(), EDA_TEXT::HasTextVars(), TEXT_VAR_REF_KEY::LOCAL, EDA_TEXT::SetText(), and unityScale.
| BOOST_AUTO_TEST_CASE | ( | TextVarReferences_EmptyWhenNoVars | ) |
Definition at line 165 of file test_eda_text.cpp.
References EDA_TEXT::GetTextVarReferences(), EDA_TEXT::HasTextVars(), EDA_TEXT::SetText(), and unityScale.
| BOOST_AUTO_TEST_CASE | ( | TextVarReferences_EscapedLiteralNotEdge | ) |
Definition at line 225 of file test_eda_text.cpp.
References EDA_TEXT::GetTextVarReferences(), EDA_TEXT::SetText(), and unityScale.
| BOOST_AUTO_TEST_CASE | ( | TextVarReferences_InvalidatedOnRetext | ) |
Definition at line 196 of file test_eda_text.cpp.
References EDA_TEXT::GetTextVarReferences(), EDA_TEXT::SetText(), and unityScale.
| BOOST_AUTO_TEST_CASE | ( | TextVarReferences_StableReferenceBetweenReads | ) |
Definition at line 209 of file test_eda_text.cpp.
References EDA_TEXT::GetTextVarReferences(), EDA_TEXT::SetText(), and unityScale.
|
static |
Definition at line 34 of file test_eda_text.cpp.
References makeText200(), EDA_TEXT::SetTextSize(), and unityScale.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and makeText200().