diff --git a/test/spec/browser/draw/BpmnRendererSpec.js b/test/spec/browser/draw/BpmnRendererSpec.js index f119c4ce..b4b4b3fe 100644 --- a/test/spec/browser/draw/BpmnRendererSpec.js +++ b/test/spec/browser/draw/BpmnRendererSpec.js @@ -16,9 +16,10 @@ describe('draw/BpmnRenderer', function() { document.getElementsByTagName('body')[0].appendChild(container); }); + it('should render text annotations', function(done) { - var xml = fs.readFileSync('test/fixtures/bpmn/render/text-annotation.bpmn', 'utf8'); + var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/render/text-annotation.bpmn', 'utf8'); var renderer = new Viewer(container); @@ -27,9 +28,10 @@ describe('draw/BpmnRenderer', function() { }); }); + it('should render data objects', function(done) { - var xml = fs.readFileSync('test/fixtures/bpmn/render/data-objects.bpmn', 'utf8'); + var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/render/data-objects.bpmn', 'utf8'); var renderer = new Viewer(container); @@ -38,9 +40,10 @@ describe('draw/BpmnRenderer', function() { }); }); + it('should render events', function(done) { - var xml = fs.readFileSync('test/fixtures/bpmn/render/events.bpmn', 'utf8'); + var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/render/events.bpmn', 'utf8'); var renderer = new Viewer(container); @@ -49,9 +52,10 @@ describe('draw/BpmnRenderer', function() { }); }); + it('should render events (interrupting)', function(done) { - var xml = fs.readFileSync('test/fixtures/bpmn/render/events-interrupting.bpmn', 'utf8'); + var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/render/events-interrupting.bpmn', 'utf8'); var renderer = new Viewer(container); @@ -60,9 +64,10 @@ describe('draw/BpmnRenderer', function() { }); }); + it('should render gateways', function(done) { - var xml = fs.readFileSync('test/fixtures/bpmn/render/gateways.bpmn', 'utf8'); + var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/render/gateways.bpmn', 'utf8'); var renderer = new Viewer(container); @@ -71,9 +76,10 @@ describe('draw/BpmnRenderer', function() { }); }); + it('should render groups', function(done) { - var xml = fs.readFileSync('test/fixtures/bpmn/render/group.bpmn', 'utf8'); + var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/render/group.bpmn', 'utf8'); var renderer = new Viewer(container); @@ -82,9 +88,10 @@ describe('draw/BpmnRenderer', function() { }); }); + it('should render pools', function(done) { - var xml = fs.readFileSync('test/fixtures/bpmn/render/pools.bpmn', 'utf8'); + var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/render/pools.bpmn', 'utf8'); var renderer = new Viewer(container); @@ -92,4 +99,5 @@ describe('draw/BpmnRenderer', function() { done(err); }); }); + }); \ No newline at end of file