diff --git a/test/fixtures/bpmn/render/conditional-flow.bpmn b/test/fixtures/bpmn/render/conditional-flow.bpmn new file mode 100644 index 00000000..ede91e23 --- /dev/null +++ b/test/fixtures/bpmn/render/conditional-flow.bpmn @@ -0,0 +1,248 @@ + + + + + sid-3FA58AD7-6491-4C89-A636-42E47488D426 + sid-82C30D2C-10BC-4035-8A14-B50298F120E9 + sid-A35FA3B7-318C-49FE-8446-70B6EC8329A5 + + + sid-A35FA3B7-318C-49FE-8446-70B6EC8329A5 + + + sid-3FA58AD7-6491-4C89-A636-42E47488D426 + + + sid-82C30D2C-10BC-4035-8A14-B50298F120E9 + sid-262FECFE-432B-42B6-AAF7-040A6B6D1880 + + + sid-262FECFE-432B-42B6-AAF7-040A6B6D1880 + sid-F35A9A61-6B46-4F0F-8885-FC17ED3D3CBB + sid-314B00E4-B24D-485E-B645-5D692C5AD9DE + + + sid-314B00E4-B24D-485E-B645-5D692C5AD9DE + sid-AF879D05-477F-45C5-A8CB-C3C5FC1F70E9 + + + sid-F35A9A61-6B46-4F0F-8885-FC17ED3D3CBB + sid-54D7C967-8E1B-4282-82C4-E3105B6AC0AC + + + sid-AF879D05-477F-45C5-A8CB-C3C5FC1F70E9 + sid-54D7C967-8E1B-4282-82C4-E3105B6AC0AC + sid-3A48A6D4-00FD-453B-89CE-A453D68C2732 + + + sid-52DA4A1B-A188-4866-AD39-ED24F6BDF9D0 + sid-19AA87BE-9229-4063-83A9-AC10C98C1D67 + + + sid-AA6359EA-B251-41E9-8A80-5870C35203FB + sid-05966EA5-FA89-4F41-B59E-BEF1F717B05F + + + sid-1C6223C2-572C-4B53-82B3-A7498A046B3E + sid-DB9390D1-45D2-4A16-BEA3-D14D8715E057 + + + sid-3A48A6D4-00FD-453B-89CE-A453D68C2732 + sid-52DA4A1B-A188-4866-AD39-ED24F6BDF9D0 + sid-AA6359EA-B251-41E9-8A80-5870C35203FB + sid-1C6223C2-572C-4B53-82B3-A7498A046B3E + + + sid-19AA87BE-9229-4063-83A9-AC10C98C1D67 + sid-05966EA5-FA89-4F41-B59E-BEF1F717B05F + sid-DB9390D1-45D2-4A16-BEA3-D14D8715E057 + sid-BBFAEEF1-BEFC-43DD-B045-4D7B662868A7 + + + sid-BBFAEEF1-BEFC-43DD-B045-4D7B662868A7 + + + #{selectedFlow=='A'} + + + + + #{selectedFlow=='B'} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/spec/browser/draw/BpmnRendererSpec.js b/test/spec/browser/draw/BpmnRendererSpec.js index b8d409c6..4a6a62b8 100644 --- a/test/spec/browser/draw/BpmnRendererSpec.js +++ b/test/spec/browser/draw/BpmnRendererSpec.js @@ -17,6 +17,17 @@ describe('draw/BpmnRenderer', function() { }); + it('should render conditional flows', function(done) { + + var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/render/conditional-flow.bpmn', 'utf8'); + + var renderer = new Viewer(container); + + renderer.importXML(xml, function(err) { + done(err); + }); + }); + it('should render text annotations', function(done) { var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/render/text-annotation.bpmn', 'utf8');