59 using interact::UICoord;
95 verify_limitedCreate();
96 verify_createNewPath();
106 auto location =
UICoord{
"win-1",
"persp-A",
"thePanel",
"someView",
"tab#5"};
109 fakeDirectory->existingPath = location;
110 fakeDirectory->response.reset (
new DummyTab);
113 auto answer = accessAPI().access<
DummyWidget> (location);
115 CHECK (answer.isValid());
118 CHECK (isSameObject (widget, *fakeDirectory->response));
130 auto path =
UICoord{
"win-1",
"persp-A",
"thePanel"};
131 auto location =
UICoord{
"win-1",
"persp-A",
"thePanel",
"someView"};
134 fakeDirectory->existingPath = path;
135 CHECK (not fakeDirectory->response);
139 CHECK ( fakeDirectory->response);
140 CHECK (isSameObject (view, *fakeDirectory->response));
145 verify_limitedCreate()
147 UNIMPLEMENTED (
"limit creation of new sibling objects");
152 verify_createNewPath()
154 UNIMPLEMENTED (
"create a new path from scratch");
Describe a location within the UI through structural/topological coordinates.
void verify_standardUsage()
#define INSTANCEOF(CLASS, EXPR)
shortcut for subclass test, intended for assertions only.
Per type specific configuration of instances created as service dependencies.
Access point to singletons and other kinds of dependencies designated by type.
Simple test class runner.
Lumiera GTK UI implementation root.
Tiny helper functions and shortcuts to be used everywhere Consider this header to be effectively incl...
A topological addressing scheme to designate structural locations within the UI.
Mock implementation of the model::ElementAccess interface for testing without actual UI...
A collection of frequently used helper functions to support unit testing.
void verify_simpleAccess()
MOC & triggerCreate()
trigger lazy service object instantiation
Unit test helper for access to UI elements without actually running an UI.
Configuration handle for temporarily shadowing a dependency by a test mock instance.
bool isSameObject(A const &a, B const &b)
compare plain object identity, bypassing any custom comparison operators.