50 using interact::UICoord;
86 verify_limitedCreate();
87 verify_createNewPath();
97 auto location =
UICoord{
"win-1",
"persp-A",
"thePanel",
"someView",
"tab#5"};
100 fakeDirectory->existingPath = location;
101 fakeDirectory->response.reset (
new DummyTab);
104 auto answer = accessAPI().access<
DummyWidget> (location);
106 CHECK (answer.isValid());
109 CHECK (isSameObject (widget, *fakeDirectory->response));
121 auto path =
UICoord{
"win-1",
"persp-A",
"thePanel"};
122 auto location =
UICoord{
"win-1",
"persp-A",
"thePanel",
"someView"};
125 fakeDirectory->existingPath = path;
126 CHECK (not fakeDirectory->response);
130 CHECK ( fakeDirectory->response);
131 CHECK (isSameObject (view, *fakeDirectory->response));
136 verify_limitedCreate()
138 UNIMPLEMENTED (
"limit creation of new sibling objects");
143 verify_createNewPath()
145 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.
Simplistic 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, based directly on the referee's memory identities. ...