From 90e3e86237dd4931485abb08a700daab8a54bbc5 Mon Sep 17 00:00:00 2001 From: Nico Rehwaldt Date: Mon, 30 Jun 2014 16:58:23 +0200 Subject: [PATCH] tests(import): add end event to simple fixture --- test/fixtures/bpmn/simple.bpmn | 14 +++++++++++++- test/spec/browser/import/ImporterSpec.js | 10 +++++++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/test/fixtures/bpmn/simple.bpmn b/test/fixtures/bpmn/simple.bpmn index 0821952b..621a50df 100644 --- a/test/fixtures/bpmn/simple.bpmn +++ b/test/fixtures/bpmn/simple.bpmn @@ -1,7 +1,8 @@ - + + SequenceFlow_2 SequenceFlow_1 @@ -10,6 +11,10 @@ + + SequenceFlow_2 + + @@ -26,6 +31,13 @@ + + + + + + + \ No newline at end of file diff --git a/test/spec/browser/import/ImporterSpec.js b/test/spec/browser/import/ImporterSpec.js index b3991a15..20c36daa 100644 --- a/test/spec/browser/import/ImporterSpec.js +++ b/test/spec/browser/import/ImporterSpec.js @@ -35,7 +35,7 @@ describe('import - importer', function() { function createDiagram() { return new Diagram({ canvas: { container: container }, - modules: Viewer.modules + modules: Viewer.prototype._modules }); } @@ -79,7 +79,9 @@ describe('import - importer', function() { { type: 'add', semantic: 'SubProcess_1', di: '_BPMNShape_SubProcess_2', diagramElement: 'SubProcess_1' }, { type: 'add', semantic: 'StartEvent_1', di: '_BPMNShape_StartEvent_2', diagramElement: 'StartEvent_1' }, { type: 'add', semantic: 'Task_1', di: '_BPMNShape_Task_2', diagramElement: 'Task_1' }, - { type: 'add', semantic: 'SequenceFlow_1', di: 'BPMNEdge_SequenceFlow_1', diagramElement: 'SequenceFlow_1' } + { type: 'add', semantic: 'SequenceFlow_1', di: 'BPMNEdge_SequenceFlow_1', diagramElement: 'SequenceFlow_1' }, + { type: 'add', semantic: 'EndEvent_1', di: '_BPMNShape_EndEvent_2', diagramElement: 'EndEvent_1' }, + { type: 'add', semantic: 'SequenceFlow_2', di: 'BPMNEdge_SequenceFlow_2', diagramElement: 'SequenceFlow_2' } ]); done(err); @@ -111,7 +113,9 @@ describe('import - importer', function() { { type: 'add', semantic: 'SubProcess_1', di: '_BPMNShape_SubProcess_2', diagramElement: 'SubProcess_1' }, { type: 'add', semantic: 'StartEvent_1', di: '_BPMNShape_StartEvent_2', diagramElement: 'StartEvent_1' }, { type: 'add', semantic: 'Task_1', di: '_BPMNShape_Task_2', diagramElement: 'Task_1' }, - { type: 'add', semantic: 'SequenceFlow_1', di: 'BPMNEdge_SequenceFlow_1', diagramElement: 'SequenceFlow_1' } + { type: 'add', semantic: 'SequenceFlow_1', di: 'BPMNEdge_SequenceFlow_1', diagramElement: 'SequenceFlow_1' }, + { type: 'add', semantic: 'EndEvent_1', di: '_BPMNShape_EndEvent_2', diagramElement: 'EndEvent_1' }, + { type: 'add', semantic: 'SequenceFlow_2', di: 'BPMNEdge_SequenceFlow_2', diagramElement: 'SequenceFlow_2' } ]); done(err);