2014-06-27 15:52:34 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var Matchers = require('../../../Matchers'),
|
|
|
|
TestHelper = require('../../../TestHelper');
|
|
|
|
|
|
|
|
/* global bootstrapBpmnJS, inject */
|
|
|
|
|
|
|
|
|
|
|
|
var fs = require('fs');
|
|
|
|
|
|
|
|
var contextPadModule = require('../../../../../lib/features/context-pad'),
|
|
|
|
bpmnModule = require('../../../../../lib/draw');
|
|
|
|
|
|
|
|
|
|
|
|
describe('features - context-pad', function() {
|
|
|
|
|
2014-07-30 14:06:32 +00:00
|
|
|
beforeEach(Matchers.addDeepEquals);
|
2014-06-27 15:52:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
var diagramXML = fs.readFileSync('test/fixtures/bpmn/complex.bpmn', 'utf-8');
|
|
|
|
|
|
|
|
var testModules = [ contextPadModule, bpmnModule ];
|
|
|
|
|
|
|
|
beforeEach(bootstrapBpmnJS(diagramXML, { modules: testModules }));
|
|
|
|
|
|
|
|
|
|
|
|
describe('bootstrap', function() {
|
|
|
|
|
|
|
|
it('should bootstrap', inject(function(contextPadProvider) {
|
|
|
|
expect(contextPadProvider).toBeDefined();
|
|
|
|
}));
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|