54 lines
1.3 KiB
JavaScript
54 lines
1.3 KiB
JavaScript
'use strict';
|
|
|
|
var Matchers = require('../../../Matchers'),
|
|
TestHelper = require('../../../TestHelper');
|
|
|
|
/* global bootstrapBpmnJS, inject */
|
|
|
|
|
|
var fs = require('fs');
|
|
|
|
|
|
describe('import - labels', function() {
|
|
|
|
beforeEach(Matchers.add);
|
|
|
|
|
|
describe('should import embedded labels', function() {
|
|
|
|
it('on flow nodes', function(done) {
|
|
var xml = fs.readFileSync('test/fixtures/bpmn/import/labels/embedded.bpmn', 'utf8');
|
|
bootstrapBpmnJS(xml)(done);
|
|
});
|
|
|
|
|
|
it('on pools and lanes', function(done) {
|
|
var xml = fs.readFileSync('test/fixtures/bpmn/import/labels/collaboration.bpmn', 'utf8');
|
|
bootstrapBpmnJS(xml)(done);
|
|
});
|
|
|
|
|
|
it('on message flows', function(done) {
|
|
var xml = fs.readFileSync('test/fixtures/bpmn/import/labels/collaboration-message-flows.bpmn', 'utf8');
|
|
bootstrapBpmnJS(xml)(done);
|
|
});
|
|
|
|
});
|
|
|
|
|
|
describe('should import external labels', function() {
|
|
|
|
it('with di', function(done) {
|
|
var xml = fs.readFileSync('test/fixtures/bpmn/import/labels/external.bpmn', 'utf8');
|
|
bootstrapBpmnJS(xml)(done);
|
|
});
|
|
|
|
|
|
it('without di', function(done) {
|
|
var xml = fs.readFileSync('test/fixtures/bpmn/import/labels/external-no-di.bpmn', 'utf8');
|
|
bootstrapBpmnJS(xml)(done);
|
|
});
|
|
|
|
});
|
|
|
|
}); |