|
KiCad PCB EDA Suite
|
Regression test for 3D viewer layer-preset serialization. More...
#include <qa_utils/wx_utils/unit_test_utils.h>#include <layer_ids.h>#include <3d_viewer/eda_3d_viewer_settings.h>#include <bitset>Go to the source code of this file.
Functions | |
| BOOST_AUTO_TEST_CASE (PresetLayerVisibilityRoundTrip) | |
Regression test for 3D viewer layer-preset serialization.
The PARAM_LAYER_PRESET_3D name<->layer map omitted the numbered User.1..User.45 layers and the grid axes layer. Those bits were lost on a save/load round-trip through the JSON settings, which is why kicad-cli renders ignored them.
Definition in file test_3d_viewer_layer_presets.cpp.
| BOOST_AUTO_TEST_CASE | ( | PresetLayerVisibilityRoundTrip | ) |
Definition at line 42 of file test_3d_viewer_layer_presets.cpp.
References actual, BOOST_AUTO_TEST_CASE(), expected, LAYER_3D_BOARD, LAYER_3D_USER_1, LAYER_3D_USER_45, LAYER_3D_USER_COMMENTS, LAYER_GRID_AXES, LAYER_PRESET_3D::layers, JSON_SETTINGS::Load(), EDA_3D_VIEWER_SETTINGS::m_LayerPresets, and JSON_SETTINGS::Store().