complete the sending of state mark notifications

...everything working out of the box thus far,
which is remarkable, since I didn't write a single
line of implementation code beyond what's available
as basic bus functionality. So this one just
fell into place
This commit is contained in:
Fischlurch 2016-02-11 22:13:36 +01:00
parent 35a0e8e5b4
commit e4a57e27d2

View file

@ -213,6 +213,7 @@ namespace test {
void
verify_mockManipulation ()
{
MARK_TEST_FUN
MockElm mock("dummy");
CHECK (mock.verify("ctor"));
@ -418,6 +419,28 @@ namespace test {
CHECK (nexusLog.verifyCall("note").arg(targetID, GenNode{"expand", true})
.before("handling state-mark"));
trigger_collapse(); // emit other signal
CHECK (not mock.isExpanded());
CHECK (mock.isTouched());
CHECK (nexusLog.verifyCall("note").arg(targetID, GenNode{"expand", true})
.before("handling state-mark")
.beforeCall("note").arg(targetID, GenNode{"expand", false})
.before("handling state-mark"));
trigger_collapse();
CHECK (not mock.isExpanded());
CHECK (mock.verifyEvent("create", "target")
.beforeEvent("expanded")
.beforeEvent("collapsed"));
CHECK (nexusLog.verifyCall("note").arg(targetID, GenNode{"expand", true})
.before("handling state-mark")
.beforeCall("note").arg(targetID, GenNode{"expand", false})
.before("handling state-mark")
.beforeCall("note").arg(targetID, GenNode{"expand", false})
.before("handling state-mark"));
////////////////////////////////////////////////////////////TODO: WIP
cout << "____Event-Log_________________\n"
<< util::join(mock.getLog(), "\n")
@ -427,8 +450,6 @@ namespace test {
<< util::join(nexusLog, "\n")
<< "\n───╼━━━━━━━━━╾────────────────"<<endl;
////////////////////////////////////////////////////////////TODO: WIP
TODO ("be sure also to cover signal diagnostics here");
}