'use strict'; var TestHelper = require('../../TestHelper'); /* global bootstrapViewer */ describe('draw - bpmn renderer', function() { it('should render activity markers', function(done) { var xml = require('../../fixtures/bpmn/draw/activity-markers.bpmn'); bootstrapViewer(xml)(done); }); it('should render activity markers (combination)', function(done) { var xml = require('../../fixtures/bpmn/draw/activity-markers-combination.bpmn'); bootstrapViewer(xml)(done); }); it('should render conditional flows', function(done) { var xml = require('../../fixtures/bpmn/draw/conditional-flow.bpmn'); bootstrapViewer(xml)(done); }); it('should render conditional default flows', function(done) { var xml = require('../../fixtures/bpmn/draw/conditional-flow-default.bpmn'); bootstrapViewer(xml)(done); }); it('should render NO conditional flow (gateway)', function(done) { var xml = require('../../fixtures/bpmn/draw/conditional-flow-gateways.bpmn'); bootstrapViewer(xml)(done); }); it('should render conditional flow (typed task)', function(done) { var xml = require('../../fixtures/bpmn/draw/conditional-flow-typed-task.bpmn'); bootstrapViewer(xml)(done); }); it('should render data objects', function(done) { var xml = require('../../fixtures/bpmn/draw/data-objects.bpmn'); bootstrapViewer(xml)(done); }); it('should render events', function(done) { var xml = require('../../fixtures/bpmn/draw/events.bpmn'); bootstrapViewer(xml)(done); }); it('should render events (interrupting)', function(done) { var xml = require('../../fixtures/bpmn/draw/events-interrupting.bpmn'); bootstrapViewer(xml)(done); }); it('should render event subprocesses (collapsed)', function(done) { var xml = require('../../fixtures/bpmn/draw/event-subprocesses-collapsed.bpmn'); bootstrapViewer(xml)(done); }); it('should render event subprocesses (expanded)', function(done) { var xml = require('../../fixtures/bpmn/draw/event-subprocesses-expanded.bpmn'); bootstrapViewer(xml)(done); }); it('should render gateways', function(done) { var xml = require('../../fixtures/bpmn/draw/gateways.bpmn'); bootstrapViewer(xml)(done); }); it('should render group', function(done) { var xml = require('../../fixtures/bpmn/draw/group.bpmn'); bootstrapViewer(xml)(done); }); it('should render message marker', function(done) { var xml = require('../../fixtures/bpmn/draw/message-marker.bpmn'); bootstrapViewer(xml)(done); }); it('should render pools', function(done) { var xml = require('../../fixtures/bpmn/draw/pools.bpmn'); bootstrapViewer(xml)(done); }); it('should render pool collection marker', function(done) { var xml = require('../../fixtures/bpmn/draw/pools-with-collection-marker.bpmn'); bootstrapViewer(xml)(done); }); it('should render task types', function(done) { var xml = require('../../fixtures/bpmn/draw/task-types.bpmn'); bootstrapViewer(xml)(done); }); it('should render text annotations', function(done) { var xml = require('../../fixtures/bpmn/draw/text-annotation.bpmn'); bootstrapViewer(xml)(done); }); it('should render flow markers', function(done) { var xml = require('../../fixtures/bpmn/flow-markers.bpmn'); bootstrapViewer(xml)(done); }); it('should render xor gateways blank and with X', function(done) { var xml = require('../../fixtures/bpmn/draw/xor.bpmn'); bootstrapViewer(xml)(done); }); it('should render boundary events with correct z-index', function(done) { var xml = require('../../fixtures/bpmn/draw/boundary-event-z-index.bpmn'); bootstrapViewer(xml)(done); }); it('should render boundary events without flowNodeRef', function(done) { var xml = require('../../fixtures/bpmn/draw/boundary-event-without-refnode.bpmn'); bootstrapViewer(xml)(done); }); it('should render boundary event only once if referenced incorrectly via flowNodeRef (robustness)', function(done) { var xml = require('../../fixtures/bpmn/draw/boundary-event-with-refnode.bpmn'); bootstrapViewer(xml)(done); }); it('should render gateway event if attribute is missing in XML', function(done) { var xml = require('../../fixtures/bpmn/draw/gateway-type-default.bpmn'); bootstrapViewer(xml)(done); }); });