test(draw): visually verify label rendering

This commit is contained in:
Nico Rehwaldt 2018-09-20 22:18:10 +02:00
parent 90faab981d
commit e54a3a7692
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:omgdc="http://www.omg.org/spec/DD/20100524/DC" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="sid-38422fae-e03e-43a3-bef4-bd33b32041b2" targetNamespace="http://bpmn.io/bpmn" exporter="http://bpmn.io" exporterVersion="0.10.1">
<process id="Process_1" isExecutable="false">
<startEvent id="StartEvent_1" name="hunger&#10;noticed" />
<task id="Task_1" name="choose recipe aa&#10;ASDSAD&#10;DSAADS" />
<exclusiveGateway id="ExclusiveGateway_1" name="desired dish?" />
</process>
<bpmndi:BPMNDiagram id="BpmnDiagram_1">
<bpmndi:BPMNPlane id="BpmnPlane_1" bpmnElement="Process_1">
<bpmndi:BPMNShape id="StartEvent_16g5oa3_di" bpmnElement="StartEvent_1">
<omgdc:Bounds x="157" y="48" width="36" height="36" />
<bpmndi:BPMNLabel>
<omgdc:Bounds x="157" y="91" width="36" height="27" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="Task_0kmcz3u_di" bpmnElement="Task_1">
<omgdc:Bounds x="125" y="131" width="100" height="80" />
</bpmndi:BPMNShape>
<bpmndi:BPMNShape id="ExclusiveGateway_04ookgz_di" bpmnElement="ExclusiveGateway_1" isMarkerVisible="true">
<omgdc:Bounds x="150" y="226" width="50" height="50" />
<bpmndi:BPMNLabel>
<omgdc:Bounds x="143" y="274" width="65" height="14" />
</bpmndi:BPMNLabel>
</bpmndi:BPMNShape>
</bpmndi:BPMNPlane>
</bpmndi:BPMNDiagram>
</definitions>

View File

@ -33,6 +33,12 @@ function checkErrors(done) {
describe('draw - bpmn renderer', function() {
it('should render labels', function(done) {
var xml = require('./BpmnRenderer.labels.bpmn');
bootstrapViewer(xml).call(this, checkErrors(done));
});
it('should render activity markers', function(done) {
var xml = require('../../fixtures/bpmn/draw/activity-markers.bpmn');
bootstrapViewer(xml).call(this, checkErrors(done));