mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-10 09:05:58 +00:00
d3dbeb1375
close bpmn-js#137
51 lines
888 B
JavaScript
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);
|
|
});
|
|
});
|
|
|
|
|
|
|
|
});
|