parent
0f4dbb32bd
commit
7ad344cfc5
|
@ -0,0 +1,38 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<bpmn:definitions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="1.2.2">
|
||||||
|
<bpmn:collaboration id="Collaboration_1">
|
||||||
|
<bpmn:participant id="Participant_1" processRef="Process_1" />
|
||||||
|
</bpmn:collaboration>
|
||||||
|
<bpmn:process id="Process_1" isExecutable="false">
|
||||||
|
<bpmn:startEvent id="StartEvent_1">
|
||||||
|
<bpmn:outgoing>SequenceFlow_1</bpmn:outgoing>
|
||||||
|
</bpmn:startEvent>
|
||||||
|
<bpmn:sequenceFlow id="SequenceFlow_1" sourceRef="StartEvent_1" targetRef="Task_1" />
|
||||||
|
<bpmn:task id="Task_1">
|
||||||
|
<bpmn:incoming>SequenceFlow_1</bpmn:incoming>
|
||||||
|
</bpmn:task>
|
||||||
|
</bpmn:process>
|
||||||
|
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||||
|
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="Collaboration_1">
|
||||||
|
<bpmndi:BPMNShape id="Participant_0rw90rw_di" bpmnElement="Participant_1">
|
||||||
|
<dc:Bounds x="100" y="52" width="123" height="120" />
|
||||||
|
</bpmndi:BPMNShape>
|
||||||
|
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
||||||
|
<dc:Bounds x="150" y="94" width="36" height="36" />
|
||||||
|
<bpmndi:BPMNLabel>
|
||||||
|
<dc:Bounds x="123" y="130" width="90" height="20" />
|
||||||
|
</bpmndi:BPMNLabel>
|
||||||
|
</bpmndi:BPMNShape>
|
||||||
|
<bpmndi:BPMNShape id="Task_0u9b7yl_di" bpmnElement="Task_1">
|
||||||
|
<dc:Bounds x="255" y="72" width="100" height="80" />
|
||||||
|
</bpmndi:BPMNShape>
|
||||||
|
<bpmndi:BPMNEdge id="SequenceFlow_156nnmr_di" bpmnElement="SequenceFlow_1">
|
||||||
|
<di:waypoint xsi:type="dc:Point" x="186" y="112" />
|
||||||
|
<di:waypoint xsi:type="dc:Point" x="255" y="112" />
|
||||||
|
<bpmndi:BPMNLabel>
|
||||||
|
<dc:Bounds x="175.5" y="87" width="90" height="20" />
|
||||||
|
</bpmndi:BPMNLabel>
|
||||||
|
</bpmndi:BPMNEdge>
|
||||||
|
</bpmndi:BPMNPlane>
|
||||||
|
</bpmndi:BPMNDiagram>
|
||||||
|
</bpmn:definitions>
|
|
@ -567,4 +567,41 @@ describe('features/auto-resize', function() {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
describe('space-tool', function() {
|
||||||
|
|
||||||
|
var diagramXML = require('./AutoResize.space-tool.bpmn');
|
||||||
|
|
||||||
|
var taskShape,
|
||||||
|
participantShape,
|
||||||
|
originalBounds;
|
||||||
|
|
||||||
|
beforeEach(bootstrapModeler(diagramXML, { modules: testModules }));
|
||||||
|
|
||||||
|
beforeEach(inject(function(elementRegistry) {
|
||||||
|
|
||||||
|
taskShape = elementRegistry.get('Task_1');
|
||||||
|
participantShape = elementRegistry.get('Participant_1');
|
||||||
|
|
||||||
|
originalBounds = getBounds(participantShape);
|
||||||
|
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
it('should not expand after space-tool', inject(function(modeling) {
|
||||||
|
|
||||||
|
// given
|
||||||
|
var delta = { x: 50, y: 0 },
|
||||||
|
direction = 'e';
|
||||||
|
|
||||||
|
// when
|
||||||
|
modeling.createSpace([ taskShape ], [], delta, direction);
|
||||||
|
|
||||||
|
// then
|
||||||
|
var newBounds = getBounds(participantShape);
|
||||||
|
|
||||||
|
expect(originalBounds).to.eql(newBounds);
|
||||||
|
}));
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue