bpmn-js/test/spec/features/palette/BpmnPaletteProviderSpec.js
2014-10-06 12:23:22 +02:00

51 lines
888 B
JavaScript

'use strict';
var Matchers = require('../../../Matchers'),
TestHelper = require('../../../TestHelper');
var fs = require('fs');
var Modeler = require('../../../../lib/Modeler');
var bpmnPaletteModule = require('../../../../lib/features/palette');
describe('palette', function() {
beforeEach(Matchers.addDeepEquals);
var container;
beforeEach(function() {
container = jasmine.getEnv().getTestContainer();
});
function createModeler(xml, done) {
var modeler = new Modeler({ container: container });
modeler.importXML(xml, function(err) {
done(err, modeler);
});
}
iit('should should draw palette', function(done) {
var modeler = new Modeler({ container: container });
modeler.createDiagram(function(err) {
var palette = modeler.get('bpmnPaletteProvider');
palette.open();
done(err);
});
});
});