diff --git a/test/fixtures/bpmn/render/event-interrupting.bpmn b/test/fixtures/bpmn/render/events-interrupting.bpmn similarity index 100% rename from test/fixtures/bpmn/render/event-interrupting.bpmn rename to test/fixtures/bpmn/render/events-interrupting.bpmn diff --git a/test/spec/browser/draw/BpmnRendererSpec.js b/test/spec/browser/draw/BpmnRendererSpec.js new file mode 100644 index 00000000..e549f756 --- /dev/null +++ b/test/spec/browser/draw/BpmnRendererSpec.js @@ -0,0 +1,43 @@ +var fs = require('fs'); + +var Viewer = require('../../../../lib/Viewer'); + +var Matchers = require('../../Matchers'); + + +describe('draw/BpmnRenderer', function() { + + beforeEach(Matchers.add); + + var container; + + beforeEach(function() { + container = document.createElement('div'); + document.getElementsByTagName('body')[0].appendChild(container); + }); + + + it('should render events', function(done) { + + var xml = fs.readFileSync('test/fixtures/bpmn/render/events.bpmn', 'utf8'); + + var renderer = new Viewer(container); + + renderer.importXML(xml, function(err) { + done(err); + }); + }); + + + it('should render events (interrupting)', function(done) { + + var xml = fs.readFileSync('test/fixtures/bpmn/render/events-interrupting.bpmn', 'utf8'); + + var renderer = new Viewer(container); + + renderer.importXML(xml, function(err) { + done(err); + }); + }); + +}); \ No newline at end of file