lumiera_/tests/52-gui-control.tests
Ichthyostega b6360b2e9c LocationSolver: automatically inject persp(UIC_ELIDED) (closes #1128)
decided to add a very specific preprocessing here, to make the DSL notation more natural.
My guess is that most people won't spot the presence of this tiny bit of magic,
and it would be way more surprising to have rules like

UICoord::currentWindow().panel("viewer").create()

fail in most cases, simply because there is a wildcard on the perspective
and the panel viewer does not (yet) exist. In such a case, we now turn the
perspective into a "existential quantified" wildcard, which is treated as if
the actually existing element was written explicitly into the pattern.
2018-02-17 05:11:34 +01:00

34 lines
730 B
Text

TESTING "Component Test Suite: GUI Control Facilities" ./test-suite --group=gui
PLANNED "Context bound command invocation" CmdContext_test <<END
return: 0
END
PLANNED "configuration DSL for view access" ViewSpecDSL_test <<END
return: 0
END
TEST "generic UI coordinates" UICoord_test <<END
return: 0
END
TEST "resolving UI coordinates" UICoordResolver_test <<END
return: 0
END
TEST "solving for UI location" UILocationSolver_test <<END
out-lit: =~ .. UI:?[edit]-viewer
out-lit: OR UI:currentWindow[*]-viewer
out-lit: OR UI:?-viewer
out-lit: OR UI:?[asset]-*.asset
out-lit: OR UI:?-asset.asset create!
out-lit: OR UI:currentWindow[*]-viewer create!
out-lit: OR UI:meta[config]-infobox.inspect create!
return: 0
END