Lumiera  0.pre.03
»edit your freedom«
abstract-tangible-test.cpp File Reference

Go to the source code of this file.

Description

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.

Todo:

WIP ///////////////////////TICKET #959 : GUI Model / Bus

WIP ///////////////////////TICKET #956 : model diff representation

WIP ///////////////////////TICKET #961 : tests to pass...

See also
stage::UiBus

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>

Classes

class  AbstractTangible_test
 

Typedefs

using ID = lib::idi::BareEntryID const &
 

Functions

int capture (int)
 
 LAUNCHER (AbstractTangible_test, "unit stage")
 Register this test class... More...
 
void operate (int val)
 
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 More...
 
void undoIt (int, int oldState)
 

Variables

const Symbol DUMMY_CMD_ID {"test.AbstractTangibleTest_dummy_command"}
 
int dummyState = 0
 

Namespaces

 stage
 Lumiera GTK UI implementation root.
 
 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.
 

Function Documentation

◆ LAUNCHER()

stage::model::test::LAUNCHER ( AbstractTangible_test  ,
"unit stage"   
)

Register this test class...