in x-test.js [962:982]
static output(context, stepId, ...stepTap) {
const lastIndex = context.state.stepIds.findIndex(candidateId => {
const candidate = context.state.steps[candidateId];
return !candidate.tap;
});
context.state.steps[stepId].tap = stepTap;
const index = context.state.stepIds.findIndex(candidateId => {
const candidate = context.state.steps[candidateId];
return !candidate.tap;
});
if (lastIndex !== index) {
let tap;
if (index === -1) {
// We're done!
tap = context.state.stepIds.slice(lastIndex).map(targetId => context.state.steps[targetId].tap);
} else {
tap = context.state.stepIds.slice(lastIndex, index).map(targetId => context.state.steps[targetId].tap);
}
XTestRoot.log(context, ...tap.flat());
}
}