test(draw/BpmnRenderer): use file relative model includes

This commit is contained in:
Nico Rehwaldt 2014-05-09 15:20:29 +02:00
parent 98e7e5e807
commit 6062ce10b8
1 changed files with 15 additions and 7 deletions

View File

@ -16,9 +16,10 @@ describe('draw/BpmnRenderer', function() {
document.getElementsByTagName('body')[0].appendChild(container); document.getElementsByTagName('body')[0].appendChild(container);
}); });
it('should render text annotations', function(done) { 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); var renderer = new Viewer(container);
@ -27,9 +28,10 @@ describe('draw/BpmnRenderer', function() {
}); });
}); });
it('should render data objects', function(done) { 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); var renderer = new Viewer(container);
@ -38,9 +40,10 @@ describe('draw/BpmnRenderer', function() {
}); });
}); });
it('should render events', function(done) { 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); var renderer = new Viewer(container);
@ -49,9 +52,10 @@ describe('draw/BpmnRenderer', function() {
}); });
}); });
it('should render events (interrupting)', function(done) { 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); var renderer = new Viewer(container);
@ -60,9 +64,10 @@ describe('draw/BpmnRenderer', function() {
}); });
}); });
it('should render gateways', function(done) { 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); var renderer = new Viewer(container);
@ -71,9 +76,10 @@ describe('draw/BpmnRenderer', function() {
}); });
}); });
it('should render groups', function(done) { 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); var renderer = new Viewer(container);
@ -82,9 +88,10 @@ describe('draw/BpmnRenderer', function() {
}); });
}); });
it('should render pools', function(done) { 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); var renderer = new Viewer(container);
@ -92,4 +99,5 @@ describe('draw/BpmnRenderer', function() {
done(err); done(err);
}); });
}); });
}); });