Event onChange = input.getOnChange();
// only if the input is empty
{
Operation hide = assertHasBuiltinOperation(list, "hide");
ECARule run = assertHasRunAction(root, onChange, hide);
Function empty = input.getEmpty();
assertGenerated(assertHasSimpleCondition(root, empty, run));
}
// only if the input is not empty
{
Operation show = assertHasBuiltinOperation(list, "show");
ECARule run = assertHasRunAction(root, onChange, show);
Function notEmpty = input.getNotEmpty();
assertGenerated(assertHasSimpleCondition(root, notEmpty, run));
}
}