|
KiCad PCB EDA Suite
|
#include <boost/test/unit_test.hpp>#include <widgets/editor_tabs_panel.h>#include <widgets/kicad_tab_art.h>Go to the source code of this file.
Macros | |
| #define | BOOST_TEST_NO_MAIN |
Functions | |
| BOOST_AUTO_TEST_CASE (TabVisualState) | |
| BOOST_AUTO_TEST_CASE (TabVisualStateModifiedPreviewIsModified) | |
| BOOST_AUTO_TEST_CASE (PreviewReuse) | |
| BOOST_AUTO_TEST_CASE (EditPromotesPreview) | |
| BOOST_AUTO_TEST_CASE (PromoteClearsPreview) | |
| BOOST_AUTO_TEST_CASE (ModifiedNeedsPrompt) | |
| BOOST_AUTO_TEST_CASE (ReopenExistingKeyDoesNotDuplicate) | |
| BOOST_AUTO_TEST_CASE (PermanentOpenDoesNotReusePreview) | |
| BOOST_AUTO_TEST_CASE (ModifiedPreviewBecomesPermanentForReuse) | |
| BOOST_AUTO_TEST_CASE (CloseRemovesEntryAndClearsPreviewIndex) | |
| #define BOOST_TEST_NO_MAIN |
Definition at line 20 of file test_editor_tabs_panel.cpp.
| BOOST_AUTO_TEST_CASE | ( | CloseRemovesEntryAndClearsPreviewIndex | ) |
Definition at line 147 of file test_editor_tabs_panel.cpp.
References BOOST_CHECK_EQUAL(), EDITOR_TABS_MODEL::CloseDocument(), EDITOR_TABS_MODEL::Entries(), and EDITOR_TABS_MODEL::OpenDocument().
| BOOST_AUTO_TEST_CASE | ( | EditPromotesPreview | ) |
Definition at line 66 of file test_editor_tabs_panel.cpp.
References BOOST_CHECK_EQUAL(), EDITOR_TABS_MODEL::Entries(), EDITOR_TABS_MODEL::MarkModified(), and EDITOR_TABS_MODEL::OpenDocument().
| BOOST_AUTO_TEST_CASE | ( | ModifiedNeedsPrompt | ) |
Definition at line 99 of file test_editor_tabs_panel.cpp.
References EDITOR_TABS_MODEL::CanCloseWithoutPrompt(), EDITOR_TABS_MODEL::MarkModified(), and EDITOR_TABS_MODEL::OpenDocument().
| BOOST_AUTO_TEST_CASE | ( | ModifiedPreviewBecomesPermanentForReuse | ) |
Definition at line 133 of file test_editor_tabs_panel.cpp.
References BOOST_CHECK_EQUAL(), EDITOR_TABS_MODEL::Entries(), EDITOR_TABS_MODEL::MarkModified(), and EDITOR_TABS_MODEL::OpenDocument().
| BOOST_AUTO_TEST_CASE | ( | PermanentOpenDoesNotReusePreview | ) |
Definition at line 121 of file test_editor_tabs_panel.cpp.
References BOOST_CHECK_EQUAL(), EDITOR_TABS_MODEL::Entries(), and EDITOR_TABS_MODEL::OpenDocument().
| BOOST_AUTO_TEST_CASE | ( | PreviewReuse | ) |
Definition at line 53 of file test_editor_tabs_panel.cpp.
References BOOST_CHECK_EQUAL(), EDITOR_TABS_MODEL::Entries(), and EDITOR_TABS_MODEL::OpenDocument().
| BOOST_AUTO_TEST_CASE | ( | PromoteClearsPreview | ) |
Definition at line 80 of file test_editor_tabs_panel.cpp.
References BOOST_CHECK_EQUAL(), EDITOR_TABS_MODEL::Entries(), EDITOR_TABS_MODEL::OpenDocument(), EDITOR_TABS_MODEL::PreviewIndex(), and EDITOR_TABS_MODEL::Promote().
| BOOST_AUTO_TEST_CASE | ( | ReopenExistingKeyDoesNotDuplicate | ) |
Definition at line 110 of file test_editor_tabs_panel.cpp.
References BOOST_CHECK_EQUAL(), EDITOR_TABS_MODEL::Entries(), and EDITOR_TABS_MODEL::OpenDocument().
| BOOST_AUTO_TEST_CASE | ( | TabVisualState | ) |
Definition at line 30 of file test_editor_tabs_panel.cpp.
References TAB_VISUAL_STATE::bold, BOOST_AUTO_TEST_CASE(), TAB_VISUAL_STATE::italic, ResolveTabVisualState(), and TAB_VISUAL_STATE::showAsterisk.
| BOOST_AUTO_TEST_CASE | ( | TabVisualStateModifiedPreviewIsModified | ) |
Definition at line 42 of file test_editor_tabs_panel.cpp.
References TAB_VISUAL_STATE::bold, TAB_VISUAL_STATE::italic, ResolveTabVisualState(), and TAB_VISUAL_STATE::showAsterisk.