mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-11 09:36:07 +00:00
test(draw/BpmnRenderer): use file relative model includes
This commit is contained in:
parent
98e7e5e807
commit
6062ce10b8
@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user