![]() |
Lumiera 0.pre.04
»edit your freedom«
|
Verify the common base shared by all interface elements of relevance. More...
Go to the source code of this file.
Verify the common base shared by all interface elements of relevance.
This test is not so much a test, than a test of the test support for testing primary elements of the Lumiera GTK UI. Any such element is connected to the UI-Bus and responds to some generic actions and interaction patterns. This is the foundation of any presentation state recording and restoration, and it serves to invoke any persistent action on the [Session] through a single channel and access point.
What is covered here is actually a test mock. Which in turn enables us to cover interface interactions and behaviour in a generic fashion, without actually having to operate the interface. But at the same time, this test documents our generic UI element protocol and the corresponding interactions.
WIP ///////////////////////TICKET #959 : GUI Model / Bus
WIP ///////////////////////TICKET #956 : model diff representation
WIP ///////////////////////TICKET #961 : tests to pass...
Definition in file abstract-tangible-test.cpp.
#include "lib/test/run.hpp"#include "lib/test/test-helper.hpp"#include "lib/test/event-log.hpp"#include "test/mock-elm.hpp"#include "test/test-nexus.hpp"#include "lib/idi/genfunc.hpp"#include "lib/idi/entry-id.hpp"#include "steam/control/command-def.hpp"#include "lib/diff/mutation-message.hpp"#include "lib/diff/tree-diff.hpp"#include "lib/time/timevalue.hpp"#include "lib/format-cout.hpp"#include "lib/symbol.hpp"#include "lib/error.hpp"#include "lib/util.hpp"#include <sigc++/signal.h>Namespaces | |
| namespace | stage |
| Lumiera GTK UI implementation root. | |
| namespace | stage::model |
| The Lumiera GTK-GUI uses a thin proxy layer data model on top of the actual "high-level-model", which lives in the Steam-Layer below. | |
| namespace | stage::model::test |
| namespace | stage::model::test::anonymous_namespace{abstract-tangible-test.cpp} |
Typedefs | |
| using | ID = lib::idi::BareEntryID const & |
Classes | |
| class | AbstractTangible_test |
Functions | |
| void | operate (int val) |
| int | capture (int) |
| void | undoIt (int, int oldState) |
| void | processCommandInvocation (GenNode const &commandMsg) |
| dummy Command handler, which can be hooked up to the TestNexus and causes a real command invocation on invocation message | |
| LAUNCHER (AbstractTangible_test, "unit stage") | |
| Register this test class... | |
Variables | |
| int | dummyState = 0 |
| const Symbol | DUMMY_CMD_ID {"test.AbstractTangibleTest_dummy_command"} |