parent
655e75ed2c
commit
327eb90140
|
@ -103,7 +103,7 @@ describe('features - context-pad', function() {
|
||||||
contextPad.open(element);
|
contextPad.open(element);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(deleteAction(element)).to.not.exist;
|
expect(deleteAction(element)).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ describe('features - context-pad', function() {
|
||||||
contextPad.open(element);
|
contextPad.open(element);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(deleteAction(element)).to.not.exist;
|
expect(deleteAction(element)).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -493,7 +493,7 @@ describe('features - context-pad', function() {
|
||||||
replaceMenu = domQuery('.bpmn-replace', container);
|
replaceMenu = domQuery('.bpmn-replace', container);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(replaceMenu).to.not.exist;
|
expect(replaceMenu).not.to.exist;
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
|
@ -123,7 +123,7 @@ describe('features/copy-paste', function() {
|
||||||
return e !== element && is(e, 'bpmn:SubProcess');
|
return e !== element && is(e, 'bpmn:SubProcess');
|
||||||
});
|
});
|
||||||
|
|
||||||
expect(pastedElements[0].id).to.not.equal(pastedElements[1].id);
|
expect(pastedElements[0].id).not.to.equal(pastedElements[1].id);
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -804,7 +804,7 @@ function expectCollection(collA, collB, contains) {
|
||||||
if (contains) {
|
if (contains) {
|
||||||
expect(collA).to.contain(element);
|
expect(collA).to.contain(element);
|
||||||
} else {
|
} else {
|
||||||
expect(collA).to.not.contain(element);
|
expect(collA).not.to.contain(element);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,7 +103,7 @@ describe('features/distribute-elements', function() {
|
||||||
// then
|
// then
|
||||||
expect(rangeGroups).to.have.length(3);
|
expect(rangeGroups).to.have.length(3);
|
||||||
|
|
||||||
expect(rangeGroups[1].elements).to.not.include(boundaryEvent);
|
expect(rangeGroups[1].elements).not.to.include(boundaryEvent);
|
||||||
|
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ describe('features/modeling - delete participant', function() {
|
||||||
modeling.removeShape(participantShape);
|
modeling.removeShape(participantShape);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(participant.$parent).to.not.be.ok;
|
expect(participant.$parent).not.to.be.ok;
|
||||||
|
|
||||||
var newRootShape = canvas.getRootElement(),
|
var newRootShape = canvas.getRootElement(),
|
||||||
newRootBusinessObject = newRootShape.businessObject;
|
newRootBusinessObject = newRootShape.businessObject;
|
||||||
|
@ -45,11 +45,11 @@ describe('features/modeling - delete participant', function() {
|
||||||
expect(newRootBusinessObject.$instanceOf('bpmn:Process')).to.be.true;
|
expect(newRootBusinessObject.$instanceOf('bpmn:Process')).to.be.true;
|
||||||
|
|
||||||
// collaboration DI is unwired
|
// collaboration DI is unwired
|
||||||
expect(participantDi.$parent).to.not.be.ok;
|
expect(participantDi.$parent).not.to.be.ok;
|
||||||
expect(collaboration.di).to.not.be.ok;
|
expect(collaboration.di).not.to.be.ok;
|
||||||
|
|
||||||
expect(bpmnDefinitions.rootElements).to.not.include(process);
|
expect(bpmnDefinitions.rootElements).not.to.include(process);
|
||||||
expect(bpmnDefinitions.rootElements).to.not.include(collaboration);
|
expect(bpmnDefinitions.rootElements).not.to.include(collaboration);
|
||||||
|
|
||||||
// process DI is wired
|
// process DI is wired
|
||||||
expect(diPlane.bpmnElement).to.eql(newRootBusinessObject);
|
expect(diPlane.bpmnElement).to.eql(newRootBusinessObject);
|
||||||
|
|
|
@ -239,7 +239,7 @@ describe('modeling - label layouting', function() {
|
||||||
dragging.end();
|
dragging.end();
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(getLabelPosition(connection)).to.not.eql(labelPosition);
|
expect(getLabelPosition(connection)).not.to.eql(labelPosition);
|
||||||
|
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
|
@ -52,7 +52,7 @@ describe('features/modeling - move', function() {
|
||||||
expect(subProcess.attachers).to.include(boundaryEvent);
|
expect(subProcess.attachers).to.include(boundaryEvent);
|
||||||
|
|
||||||
expect(boundaryEvent.host).to.eql(subProcess);
|
expect(boundaryEvent.host).to.eql(subProcess);
|
||||||
expect(label.host).to.not.exist;
|
expect(label.host).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ describe('features/modeling - move', function() {
|
||||||
expect(subProcess.attachers).to.include(boundaryEvent);
|
expect(subProcess.attachers).to.include(boundaryEvent);
|
||||||
|
|
||||||
expect(boundaryEvent.host).to.eql(subProcess);
|
expect(boundaryEvent.host).to.eql(subProcess);
|
||||||
expect(label.host).to.not.exist;
|
expect(label.host).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -113,7 +113,7 @@ describe('features/modeling - move', function() {
|
||||||
expect(subProcess.attachers).to.include(boundaryEvent);
|
expect(subProcess.attachers).to.include(boundaryEvent);
|
||||||
|
|
||||||
expect(boundaryEvent.host).to.eql(subProcess);
|
expect(boundaryEvent.host).to.eql(subProcess);
|
||||||
expect(label.host).to.not.exist;
|
expect(label.host).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ describe('features/modeling - move', function() {
|
||||||
expect(subProcess.attachers).to.include(boundaryEvent);
|
expect(subProcess.attachers).to.include(boundaryEvent);
|
||||||
|
|
||||||
expect(boundaryEvent.host).to.eql(subProcess);
|
expect(boundaryEvent.host).to.eql(subProcess);
|
||||||
expect(label.host).to.not.exist;
|
expect(label.host).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -163,7 +163,7 @@ describe('features/modeling - create participant', function() {
|
||||||
rootShapeDi = rootElement.businessObject.di;
|
rootShapeDi = rootElement.businessObject.di;
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(startEventDi.$parent).to.not.be.ok;
|
expect(startEventDi.$parent).not.to.be.ok;
|
||||||
expect(rootShapeDi.planeElement).not.to.include(startEventDi);
|
expect(rootShapeDi.planeElement).not.to.include(startEventDi);
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
@ -215,7 +215,7 @@ describe('features/modeling - create participant', function() {
|
||||||
// then
|
// then
|
||||||
expect(collaborationRoot.children).not.to.include(participantShape);
|
expect(collaborationRoot.children).not.to.include(participantShape);
|
||||||
|
|
||||||
expect(participant.$parent).to.not.be.ok;
|
expect(participant.$parent).not.to.be.ok;
|
||||||
expect(collaboration.participants).not.to.include(participant);
|
expect(collaboration.participants).not.to.include(participant);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
@ -53,8 +53,8 @@ describe('modeling/behavior - fix DataInputAssociation#targetRef', function() {
|
||||||
commandStack.undo();
|
commandStack.undo();
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(dataInputAssociation.targetRef).to.not.exist;
|
expect(dataInputAssociation.targetRef).not.to.exist;
|
||||||
expect(getTargetRefProp(taskShape)).to.not.exist;
|
expect(getTargetRefProp(taskShape)).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
@ -111,7 +111,7 @@ describe('modeling/behavior - fix DataInputAssociation#targetRef', function() {
|
||||||
// then
|
// then
|
||||||
expect(getTargetRefProp(oldTarget)).not.to.exist;
|
expect(getTargetRefProp(oldTarget)).not.to.exist;
|
||||||
|
|
||||||
expect(dataInputAssociation.targetRef).to.not.exist;
|
expect(dataInputAssociation.targetRef).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ describe('features/modeling - remove element behavior', function() {
|
||||||
|
|
||||||
// SequenceFlow2 should be deleted
|
// SequenceFlow2 should be deleted
|
||||||
expect(elementRegistry.get(task.id)).to.be.undefined;
|
expect(elementRegistry.get(task.id)).to.be.undefined;
|
||||||
expect(sequenceFlow1).to.not.be.undefined;
|
expect(sequenceFlow1).not.to.be.undefined;
|
||||||
expect(elementRegistry.get('SequenceFlow2')).to.be.undefined;
|
expect(elementRegistry.get('SequenceFlow2')).to.be.undefined;
|
||||||
|
|
||||||
// source and target have one connection each
|
// source and target have one connection each
|
||||||
|
|
|
@ -67,7 +67,7 @@ describe('features/modeling - remove participant behavior', function() {
|
||||||
modeling.removeShape(participantShape);
|
modeling.removeShape(participantShape);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(participant.$parent).to.not.be.ok;
|
expect(participant.$parent).not.to.be.ok;
|
||||||
|
|
||||||
var newRootShape = canvas.getRootElement(),
|
var newRootShape = canvas.getRootElement(),
|
||||||
newRootBusinessObject = newRootShape.businessObject;
|
newRootBusinessObject = newRootShape.businessObject;
|
||||||
|
@ -75,8 +75,8 @@ describe('features/modeling - remove participant behavior', function() {
|
||||||
expect(newRootBusinessObject.$instanceOf('bpmn:Process')).to.be.true;
|
expect(newRootBusinessObject.$instanceOf('bpmn:Process')).to.be.true;
|
||||||
|
|
||||||
// collaboration DI is unwired
|
// collaboration DI is unwired
|
||||||
expect(participantDi.$parent).to.not.be.ok;
|
expect(participantDi.$parent).not.to.be.ok;
|
||||||
expect(collaboration.di).to.not.be.ok;
|
expect(collaboration.di).not.to.be.ok;
|
||||||
|
|
||||||
expect(bpmnDefinitions.rootElements).not.to.include(process);
|
expect(bpmnDefinitions.rootElements).not.to.include(process);
|
||||||
expect(bpmnDefinitions.rootElements).not.to.include(collaboration);
|
expect(bpmnDefinitions.rootElements).not.to.include(collaboration);
|
||||||
|
|
|
@ -179,7 +179,7 @@ describe('features/modeling - move start event behavior', function() {
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(subProcess.children).to.have.length(2);
|
expect(subProcess.children).to.have.length(2);
|
||||||
expect(newEndEvent.eventDefinitionTypes).to.not.exist;
|
expect(newEndEvent.eventDefinitionTypes).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -234,7 +234,7 @@ describe('features/modeling - move start event behavior', function() {
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(transaction.children).to.have.length(0);
|
expect(transaction.children).to.have.length(0);
|
||||||
expect(endEventAfter.businessObject.eventDefinitions).to.not.exist;
|
expect(endEventAfter.businessObject.eventDefinitions).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -290,7 +290,7 @@ describe('features/modeling - move start event behavior', function() {
|
||||||
var newBoundaryEvent = subProcess.attachers[0].businessObject;
|
var newBoundaryEvent = subProcess.attachers[0].businessObject;
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(newBoundaryEvent.eventDefinitionTypes).to.not.exist;
|
expect(newBoundaryEvent.eventDefinitionTypes).not.to.exist;
|
||||||
expect(newBoundaryEvent.attachedToRef).to.equal(subProcess.businessObject);
|
expect(newBoundaryEvent.attachedToRef).to.equal(subProcess.businessObject);
|
||||||
expect(elementRegistry.get('Transaction_1')).to.eql(subProcess);
|
expect(elementRegistry.get('Transaction_1')).to.eql(subProcess);
|
||||||
})
|
})
|
||||||
|
@ -348,7 +348,7 @@ describe('features/modeling - move start event behavior', function() {
|
||||||
})[0];
|
})[0];
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(movedBoundaryEvent.businessObject.eventDefinitions).to.not.exist;
|
expect(movedBoundaryEvent.businessObject.eventDefinitions).not.to.exist;
|
||||||
expect(movedBoundaryEvent.businessObject.attachedToRef).to.equal(subProcess.businessObject);
|
expect(movedBoundaryEvent.businessObject.attachedToRef).to.equal(subProcess.businessObject);
|
||||||
expect(movedBoundaryEvent.parent).to.equal(process);
|
expect(movedBoundaryEvent.parent).to.equal(process);
|
||||||
|
|
||||||
|
|
|
@ -95,7 +95,7 @@ describe('features/modeling - collapse and expand elements', function() {
|
||||||
// then
|
// then
|
||||||
expect(is(expandedAdHocSubProcess, 'bpmn:AdHocSubProcess')).to.eql(true);
|
expect(is(expandedAdHocSubProcess, 'bpmn:AdHocSubProcess')).to.eql(true);
|
||||||
var businessObject = expandedAdHocSubProcess.businessObject;
|
var businessObject = expandedAdHocSubProcess.businessObject;
|
||||||
expect(businessObject.loopCharacteristics).to.not.be.undefined;
|
expect(businessObject.loopCharacteristics).not.to.be.undefined;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -381,7 +381,7 @@ describe('features/modeling - collapse and expand elements', function() {
|
||||||
// then
|
// then
|
||||||
expect(is(collapsedSubProcess, 'bpmn:AdHocSubProcess')).to.eql(true);
|
expect(is(collapsedSubProcess, 'bpmn:AdHocSubProcess')).to.eql(true);
|
||||||
var businessObject = collapsedSubProcess.businessObject;
|
var businessObject = collapsedSubProcess.businessObject;
|
||||||
expect(businessObject.loopCharacteristics).to.not.be.undefined;
|
expect(businessObject.loopCharacteristics).not.to.be.undefined;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -70,7 +70,7 @@ describe('features/modeling - lanes - flowNodeRefs', function() {
|
||||||
commandStack.redo();
|
commandStack.redo();
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(sourceLane.flowNodeRef).to.not.contain(task);
|
expect(sourceLane.flowNodeRef).not.to.contain(task);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -965,7 +965,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
defaultFlowEntry = queryEntry(popupMenu, 'replace-with-default-flow');
|
defaultFlowEntry = queryEntry(popupMenu, 'replace-with-default-flow');
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(sequenceFlowEntry).to.not.exist;
|
expect(sequenceFlowEntry).not.to.exist;
|
||||||
expect(defaultFlowEntry).to.exist;
|
expect(defaultFlowEntry).to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -982,7 +982,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(sequenceFlowEntry).to.exist;
|
expect(sequenceFlowEntry).to.exist;
|
||||||
expect(defaultFlowEntry).to.not.exist;
|
expect(defaultFlowEntry).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -1008,7 +1008,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
defaultFlowEntry = queryEntry(popupMenu, 'replace-with-default-flow');
|
defaultFlowEntry = queryEntry(popupMenu, 'replace-with-default-flow');
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(sequenceFlowEntry).to.not.exist;
|
expect(sequenceFlowEntry).not.to.exist;
|
||||||
expect(defaultFlowEntry).to.exist;
|
expect(defaultFlowEntry).to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
@ -1025,7 +1025,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(sequenceFlowEntry).to.exist;
|
expect(sequenceFlowEntry).to.exist;
|
||||||
expect(defaultFlowEntry).to.not.exist;
|
expect(defaultFlowEntry).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -1113,7 +1113,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
var collapsedSubProcessEntry = queryEntry(popupMenu, 'replace-with-collapsed-subprocess');
|
var collapsedSubProcessEntry = queryEntry(popupMenu, 'replace-with-collapsed-subprocess');
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(collapsedSubProcessEntry).to.not.exist;
|
expect(collapsedSubProcessEntry).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -1189,7 +1189,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
var task = elementRegistry.get('Task_1ei94kl');
|
var task = elementRegistry.get('Task_1ei94kl');
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(task.businessObject.default).to.not.exist;
|
expect(task.businessObject.default).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
@ -1243,7 +1243,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
triggerAction(entries, 'replace-with-conditional-flow');
|
triggerAction(entries, 'replace-with-conditional-flow');
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(task.businessObject.default).to.not.exist;
|
expect(task.businessObject.default).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
@ -1293,7 +1293,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
commandStack.undo();
|
commandStack.undo();
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(gateway.businessObject.default).to.not.exist;
|
expect(gateway.businessObject.default).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1316,7 +1316,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
var task = elementRegistry.get('Task_1ei94kl');
|
var task = elementRegistry.get('Task_1ei94kl');
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(task.businessObject.default).to.not.exist;
|
expect(task.businessObject.default).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1372,7 +1372,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
var gateway = elementRegistry.get('ExclusiveGateway_1');
|
var gateway = elementRegistry.get('ExclusiveGateway_1');
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(gateway.businessObject.default).to.not.exist;
|
expect(gateway.businessObject.default).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1436,7 +1436,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
var gateway = elementRegistry.get('ExclusiveGateway_1');
|
var gateway = elementRegistry.get('ExclusiveGateway_1');
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(gateway.businessObject.default).to.not.exist;
|
expect(gateway.businessObject.default).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
@ -1603,7 +1603,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(exclusiveGateway.businessObject.default).to.equal(sequenceFlow.businessObject);
|
expect(exclusiveGateway.businessObject.default).to.equal(sequenceFlow.businessObject);
|
||||||
expect(sequenceFlow.businessObject.conditionExpression).to.not.exist;
|
expect(sequenceFlow.businessObject.conditionExpression).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1630,7 +1630,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
commandStack.undo();
|
commandStack.undo();
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(exclusiveGateway.businessObject.default).to.not.exist;
|
expect(exclusiveGateway.businessObject.default).not.to.exist;
|
||||||
expect(sequenceFlow.businessObject.conditionExpression).to.equal(conditionExpression);
|
expect(sequenceFlow.businessObject.conditionExpression).to.equal(conditionExpression);
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
@ -1678,7 +1678,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
commandStack.undo();
|
commandStack.undo();
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(sequenceFlow.businessObject.conditionExpression).to.not.exist;
|
expect(sequenceFlow.businessObject.conditionExpression).not.to.exist;
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
||||||
|
@ -1703,7 +1703,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
triggerAction(entries, 'replace-with-sequence-flow');
|
triggerAction(entries, 'replace-with-sequence-flow');
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(sequenceFlow.businessObject.conditionExpression).to.not.exist;
|
expect(sequenceFlow.businessObject.conditionExpression).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
@ -1728,7 +1728,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(sequenceFlow.businessObject.conditionExpression).to.not.exist;
|
expect(sequenceFlow.businessObject.conditionExpression).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -1788,7 +1788,7 @@ describe('features/popup-menu - replace menu provider', function() {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(sequenceFlow.businessObject.conditionExpression).to.not.exist;
|
expect(sequenceFlow.businessObject.conditionExpression).not.to.exist;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -1380,7 +1380,7 @@ describe('features/replace - bpmn replace', function() {
|
||||||
expect(businessObject.di.fill).to.equal(fill);
|
expect(businessObject.di.fill).to.equal(fill);
|
||||||
expect(businessObject.di.stroke).to.equal(stroke);
|
expect(businessObject.di.stroke).to.equal(stroke);
|
||||||
|
|
||||||
expect(newElement.colors).to.not.exist;
|
expect(newElement.colors).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
|
@ -60,7 +60,7 @@ describe('util/clone/ModelCloneHelper', function() {
|
||||||
|
|
||||||
var serviceTask = helper.clone(userTask, moddle.create('bpmn:ServiceTask'), []);
|
var serviceTask = helper.clone(userTask, moddle.create('bpmn:ServiceTask'), []);
|
||||||
|
|
||||||
expect(getProp(serviceTask, 'camunda:assignee')).to.not.exist;
|
expect(getProp(serviceTask, 'camunda:assignee')).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -83,7 +83,7 @@ describe('util/clone/ModelCloneHelper', function() {
|
||||||
var serviceTaskDocs = getProp(serviceTask, 'bpmn:documentation'),
|
var serviceTaskDocs = getProp(serviceTask, 'bpmn:documentation'),
|
||||||
userTaskDocs = getProp(userTask, 'bpmn:documentation');
|
userTaskDocs = getProp(userTask, 'bpmn:documentation');
|
||||||
|
|
||||||
expect(userTaskDocs[0]).to.not.equal(serviceTaskDocs[0]);
|
expect(userTaskDocs[0]).not.to.equal(serviceTaskDocs[0]);
|
||||||
|
|
||||||
expect(serviceTaskDocs[0].$parent).to.equal(serviceTask);
|
expect(serviceTaskDocs[0].$parent).to.equal(serviceTask);
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@ describe('util/clone/ModelCloneHelper', function() {
|
||||||
var executionListener = serviceTask.extensionElements.values[0];
|
var executionListener = serviceTask.extensionElements.values[0];
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(executionListener).to.not.equal(userTask.extensionElements.values[0]);
|
expect(executionListener).not.to.equal(userTask.extensionElements.values[0]);
|
||||||
expect(executionListener.$type).to.equal('camunda:ExecutionListener');
|
expect(executionListener.$type).to.equal('camunda:ExecutionListener');
|
||||||
|
|
||||||
expect(executionListener.$type).to.equal('camunda:ExecutionListener');
|
expect(executionListener.$type).to.equal('camunda:ExecutionListener');
|
||||||
|
@ -180,15 +180,15 @@ describe('util/clone/ModelCloneHelper', function() {
|
||||||
var newOutParam = executionListener.outputParameters[0];
|
var newOutParam = executionListener.outputParameters[0];
|
||||||
var oldOutParam = userTask.extensionElements.values[0].outputParameters[0];
|
var oldOutParam = userTask.extensionElements.values[0].outputParameters[0];
|
||||||
|
|
||||||
expect(newOutParam).to.not.equal(oldOutParam);
|
expect(newOutParam).not.to.equal(oldOutParam);
|
||||||
|
|
||||||
expect(newOutParam.$parent).to.equal(executionListener);
|
expect(newOutParam.$parent).to.equal(executionListener);
|
||||||
expect(newOutParam.definition).to.not.equal(oldOutParam.definition);
|
expect(newOutParam.definition).not.to.equal(oldOutParam.definition);
|
||||||
expect(newOutParam.definition.$parent).to.equal(newOutParam);
|
expect(newOutParam.definition.$parent).to.equal(newOutParam);
|
||||||
|
|
||||||
expect(newOutParam.definition.items[0]).to.not.equal(oldOutParam.definition.items[0]);
|
expect(newOutParam.definition.items[0]).not.to.equal(oldOutParam.definition.items[0]);
|
||||||
|
|
||||||
expect(newOutParam.definition.items[0].$parent).to.not.equal(newOutParam.definition.$parent);
|
expect(newOutParam.definition.items[0].$parent).not.to.equal(newOutParam.definition.$parent);
|
||||||
|
|
||||||
expect(newOutParam.$type).to.equal('camunda:OutputParameter');
|
expect(newOutParam.$type).to.equal('camunda:OutputParameter');
|
||||||
expect(newOutParam.definition.$type).to.equal('camunda:List');
|
expect(newOutParam.definition.$type).to.equal('camunda:List');
|
||||||
|
@ -216,7 +216,7 @@ describe('util/clone/ModelCloneHelper', function() {
|
||||||
var extElem = userTask.extensionElements;
|
var extElem = userTask.extensionElements;
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(extElem).to.not.exist;
|
expect(extElem).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
@ -375,7 +375,7 @@ describe('util/clone/ModelCloneHelper', function() {
|
||||||
var extElems = clonedElement.extensionElements;
|
var extElems = clonedElement.extensionElements;
|
||||||
|
|
||||||
// then
|
// then
|
||||||
expect(extElems).to.not.exist;
|
expect(extElems).not.to.exist;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue