2014-06-27 15:52:34 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var Matchers = require('../../../Matchers'),
|
|
|
|
TestHelper = require('../../../TestHelper');
|
|
|
|
|
2014-08-05 06:17:22 +00:00
|
|
|
/* global bootstrapViewer, inject */
|
2014-06-27 15:52:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
var fs = require('fs');
|
|
|
|
|
2014-08-01 05:16:59 +00:00
|
|
|
var contextPadModule = require('../../../../lib/features/context-pad'),
|
2015-02-05 15:00:05 +00:00
|
|
|
bpmnModule = require('../../../../lib/core'),
|
|
|
|
popupModule = require('diagram-js/lib/features/popup-menu'),
|
|
|
|
replaceModule = require('diagram-js/lib/features/replace');
|
2014-06-27 15:52:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
describe('features - context-pad', function() {
|
|
|
|
|
2014-07-30 14:06:32 +00:00
|
|
|
beforeEach(Matchers.addDeepEquals);
|
2014-06-27 15:52:34 +00:00
|
|
|
|
|
|
|
|
2014-11-20 11:56:39 +00:00
|
|
|
var diagramXML = fs.readFileSync('test/fixtures/bpmn/simple.bpmn', 'utf8');
|
2014-06-27 15:52:34 +00:00
|
|
|
|
2015-02-05 15:00:05 +00:00
|
|
|
var testModules = [ contextPadModule, bpmnModule, popupModule, replaceModule ];
|
2014-06-27 15:52:34 +00:00
|
|
|
|
2014-08-05 06:17:22 +00:00
|
|
|
beforeEach(bootstrapViewer(diagramXML, { modules: testModules }));
|
2014-06-27 15:52:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
describe('bootstrap', function() {
|
|
|
|
|
|
|
|
it('should bootstrap', inject(function(contextPadProvider) {
|
|
|
|
expect(contextPadProvider).toBeDefined();
|
|
|
|
}));
|
|
|
|
|
|
|
|
});
|
2014-10-27 11:07:57 +00:00
|
|
|
});
|