Lumiera
0.pre.03
»edit your freedom«
|
The UILocationSolver is operated by the ViewLocator service, which itself is part of the InteractionDirector. In typical usage, the location rules are drawn from the ViewSpec-DSL, evaluated with the help of a Coordinate Resolver, based on the real UI topology existing at that moment, accessible in abstracted form through the LocationQuery interface. This test setup here mimics that invocation scheme, but replaces the real UI by an abstract tree notation embedded directly into the individual test cases.
Definition at line 66 of file ui-location-solver-test.cpp.
Private Member Functions | |
virtual void | run (Arg) |
void | simple_usage_example () |
void | verify_cornerCases () |
void | verify_standardSituations () |
|
inlineprivate |
Definition at line 80 of file ui-location-solver-test.cpp.
|
inlineprivate |
Point in question are the requirements and limits when querying against one or several location specification clauses. The actual matching of a location pattern against a UI topology is beyond scope and covered elsewhere
Definition at line 139 of file ui-location-solver-test.cpp.
|
inlineprivate |
The typical location specifications to be expected in practice can be subsumed under a small selection of standard situations; this test demonstrates how these are triggered by specific tree configurations in a (hopefully) obvious way.
For this purpose, we create a single set of location clauses here, but evaluate them each time against different (simulated) UI tree configurations to verify that the expected resulting location is actually derived in all those cases.
Definition at line 348 of file ui-location-solver-test.cpp.