chore(tests): remove unused node test folders
This commit cleans up reminders of the node-js test suite removal by removing the test/node folder. The test structure has been aligned by moving all tests from * test/spec/browser to test/spec * test/spec/integration to test/integration
This commit is contained in:
parent
44d2d94ed2
commit
826d798f19
|
@ -1,7 +1,7 @@
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
var _ = require('lodash');
|
var _ = require('lodash');
|
||||||
var BpmnJS = require('../../');
|
var BpmnJS = require('../');
|
||||||
|
|
||||||
// enhance jasmine with test container API
|
// enhance jasmine with test container API
|
||||||
require('jasmine-test-container-support').extend(jasmine);
|
require('jasmine-test-container-support').extend(jasmine);
|
|
@ -6,15 +6,15 @@ module.exports = function(karma) {
|
||||||
frameworks: [ 'browserify', 'jasmine' ],
|
frameworks: [ 'browserify', 'jasmine' ],
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
'test/spec/browser/**/*Spec.js',
|
'test/spec/**/*Spec.js',
|
||||||
'test/spec/integration/**/*Spec.js'
|
'test/integration/**/*Spec.js'
|
||||||
],
|
],
|
||||||
|
|
||||||
reporters: [ 'dots' ],
|
reporters: [ 'dots' ],
|
||||||
|
|
||||||
preprocessors: {
|
preprocessors: {
|
||||||
'test/spec/browser/**/*Spec.js': [ 'browserify' ],
|
'test/spec/**/*Spec.js': [ 'browserify' ],
|
||||||
'test/spec/integration/**/*Spec.js': [ 'browserify' ]
|
'test/integration/**/*Spec.js': [ 'browserify' ]
|
||||||
},
|
},
|
||||||
|
|
||||||
browsers: [ 'PhantomJS' ],
|
browsers: [ 'PhantomJS' ],
|
||||||
|
|
|
@ -6,7 +6,7 @@ var Matchers = require('../Matchers'),
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var Modeler = require('../../../lib/Modeler');
|
var Modeler = require('../../lib/Modeler');
|
||||||
|
|
||||||
|
|
||||||
describe('scenario - simple modeling', function() {
|
describe('scenario - simple modeling', function() {
|
|
@ -8,7 +8,7 @@ var Matchers = require('../Matchers'),
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var Modeler = require('../../../lib/Modeler');
|
var Modeler = require('../../lib/Modeler');
|
||||||
|
|
||||||
|
|
||||||
describe('modeler', function() {
|
describe('modeler', function() {
|
|
@ -8,7 +8,7 @@ var Matchers = require('../Matchers'),
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var Viewer = require('../../../lib/Viewer');
|
var Viewer = require('../../lib/Viewer');
|
||||||
|
|
||||||
|
|
||||||
describe('viewer', function() {
|
describe('viewer', function() {
|
|
@ -15,135 +15,135 @@ describe('draw - bpmn renderer', function() {
|
||||||
|
|
||||||
|
|
||||||
it('should render activity markers', function(done) {
|
it('should render activity markers', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/activity-markers.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/activity-markers.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render activity markers (combination)', function(done) {
|
it('should render activity markers (combination)', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/activity-markers-combination.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/activity-markers-combination.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render conditional flows', function(done) {
|
it('should render conditional flows', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/conditional-flow.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/conditional-flow.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render conditional default flows', function(done) {
|
it('should render conditional default flows', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/conditional-flow-default.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/conditional-flow-default.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render NO conditional flow (gateway)', function(done) {
|
it('should render NO conditional flow (gateway)', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/conditional-flow-gateways.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/conditional-flow-gateways.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render conditional flow (typed task)', function(done) {
|
it('should render conditional flow (typed task)', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/conditional-flow-typed-task.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/conditional-flow-typed-task.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render data objects', function(done) {
|
it('should render data objects', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/data-objects.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/data-objects.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render events', function(done) {
|
it('should render events', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/events.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/events.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render events (interrupting)', function(done) {
|
it('should render events (interrupting)', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/events-interrupting.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/events-interrupting.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render event subprocesses (collapsed)', function(done) {
|
it('should render event subprocesses (collapsed)', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/event-subprocesses-collapsed.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/event-subprocesses-collapsed.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render event subprocesses (expanded)', function(done) {
|
it('should render event subprocesses (expanded)', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/event-subprocesses-expanded.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/event-subprocesses-expanded.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render gateways', function(done) {
|
it('should render gateways', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/gateways.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/gateways.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render group', function(done) {
|
it('should render group', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/group.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/group.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render message marker', function(done) {
|
it('should render message marker', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/message-marker.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/message-marker.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render pools', function(done) {
|
it('should render pools', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/pools.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/pools.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render pool collection marker', function(done) {
|
it('should render pool collection marker', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/pools-with-collection-marker.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/pools-with-collection-marker.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render task types', function(done) {
|
it('should render task types', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/task-types.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/task-types.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render text annotations', function(done) {
|
it('should render text annotations', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/text-annotation.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/text-annotation.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
it('should render flow markers', function(done) {
|
it('should render flow markers', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/flow-markers.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/flow-markers.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should render xor gateways blank and with X', function(done) {
|
it('should render xor gateways blank and with X', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/xor.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/xor.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should render boundary events with correct z-index', function(done) {
|
it('should render boundary events with correct z-index', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/boundary-event-z-index.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/boundary-event-z-index.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should render boundary events without flowNodeRef', function(done) {
|
it('should render boundary events without flowNodeRef', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/boundary-event-without-refnode.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/boundary-event-without-refnode.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should render boundary event only once if referenced incorrectly via flowNodeRef (robustness)', function(done) {
|
it('should render boundary event only once if referenced incorrectly via flowNodeRef (robustness)', function(done) {
|
||||||
var xml = fs.readFileSync(__dirname + '/../../../fixtures/bpmn/draw/boundary-event-with-refnode.bpmn', 'utf8');
|
var xml = fs.readFileSync(__dirname + '/../../fixtures/bpmn/draw/boundary-event-with-refnode.bpmn', 'utf8');
|
||||||
bootstrapBpmnJS(xml)(done);
|
bootstrapBpmnJS(xml)(done);
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,7 +8,7 @@ var fs = require('fs');
|
||||||
|
|
||||||
var Events = require('diagram-js/lib/core/EventBus');
|
var Events = require('diagram-js/lib/core/EventBus');
|
||||||
|
|
||||||
var Viewer = require('../../../../lib/Viewer');
|
var Viewer = require('../../../lib/Viewer');
|
||||||
|
|
||||||
|
|
||||||
describe('environment - mocking', function() {
|
describe('environment - mocking', function() {
|
|
@ -8,8 +8,8 @@ var Matchers = require('../../../Matchers'),
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var contextPadModule = require('../../../../../lib/features/context-pad'),
|
var contextPadModule = require('../../../../lib/features/context-pad'),
|
||||||
bpmnModule = require('../../../../../lib/draw');
|
bpmnModule = require('../../../../lib/draw');
|
||||||
|
|
||||||
|
|
||||||
describe('features - context-pad', function() {
|
describe('features - context-pad', function() {
|
|
@ -11,10 +11,10 @@ var fs = require('fs');
|
||||||
var $ = require('jquery');
|
var $ = require('jquery');
|
||||||
|
|
||||||
|
|
||||||
var labelEditingModule = require('../../../../../lib/features/label-editing'),
|
var labelEditingModule = require('../../../../lib/features/label-editing'),
|
||||||
bpmnModule = require('../../../../../lib/draw');
|
bpmnModule = require('../../../../lib/draw');
|
||||||
|
|
||||||
var LabelUtil = require('../../../../../lib/features/label-editing/LabelUtil');
|
var LabelUtil = require('../../../../lib/features/label-editing/LabelUtil');
|
||||||
|
|
||||||
|
|
||||||
describe('features - label-editing', function() {
|
describe('features - label-editing', function() {
|
|
@ -8,9 +8,9 @@ var Matchers = require('../../../Matchers'),
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var Modeler = require('../../../../../lib/Modeler');
|
var Modeler = require('../../../../lib/Modeler');
|
||||||
|
|
||||||
var labelEditingModule = require('../../../../../lib/features/label-editing'),
|
var labelEditingModule = require('../../../../lib/features/label-editing'),
|
||||||
touchModule = require('diagram-js/lib/features/touch');
|
touchModule = require('diagram-js/lib/features/touch');
|
||||||
|
|
||||||
|
|
|
@ -9,8 +9,8 @@ var _ = require('lodash');
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var modelingModule = require('../../../../../lib/features/modeling'),
|
var modelingModule = require('../../../../lib/features/modeling'),
|
||||||
drawModule = require('../../../../../lib/draw');
|
drawModule = require('../../../../lib/draw');
|
||||||
|
|
||||||
|
|
||||||
describe('features/modeling - append shape', function() {
|
describe('features/modeling - append shape', function() {
|
|
@ -8,7 +8,7 @@ var Matchers = require('../../../Matchers'),
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var modelingModule = require('../../../../../lib/features/modeling');
|
var modelingModule = require('../../../../lib/features/modeling');
|
||||||
|
|
||||||
|
|
||||||
xdescribe('features - bpmn-factory', function() {
|
xdescribe('features - bpmn-factory', function() {
|
|
@ -9,8 +9,8 @@ var _ = require('lodash');
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var modelingModule = require('../../../../../lib/features/modeling'),
|
var modelingModule = require('../../../../lib/features/modeling'),
|
||||||
drawModule = require('../../../../../lib/draw');
|
drawModule = require('../../../../lib/draw');
|
||||||
|
|
||||||
|
|
||||||
describe('features/modeling - create connection', function() {
|
describe('features/modeling - create connection', function() {
|
|
@ -9,8 +9,8 @@ var _ = require('lodash');
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var modelingModule = require('../../../../../lib/features/modeling'),
|
var modelingModule = require('../../../../lib/features/modeling'),
|
||||||
drawModule = require('../../../../../lib/draw');
|
drawModule = require('../../../../lib/draw');
|
||||||
|
|
||||||
|
|
||||||
describe('features/modeling - layout connection', function() {
|
describe('features/modeling - layout connection', function() {
|
|
@ -9,8 +9,8 @@ var _ = require('lodash');
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
var modelingModule = require('../../../../../lib/features/modeling'),
|
var modelingModule = require('../../../../lib/features/modeling'),
|
||||||
drawModule = require('../../../../../lib/draw');
|
drawModule = require('../../../../lib/draw');
|
||||||
|
|
||||||
|
|
||||||
describe('features/modeling - move shape', function() {
|
describe('features/modeling - move shape', function() {
|
|
@ -9,8 +9,8 @@ var Matchers = require('../../../Matchers'),
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
|
|
||||||
|
|
||||||
var touchModule = require('../../../../../lib/features/touch'),
|
var touchModule = require('../../../../lib/features/touch'),
|
||||||
bpmnModule = require('../../../../../lib/draw');
|
bpmnModule = require('../../../../lib/draw');
|
||||||
|
|
||||||
|
|
||||||
describe('features - touch', function() {
|
describe('features - touch', function() {
|
|
@ -11,8 +11,8 @@ var fs = require('fs');
|
||||||
var $ = require('jquery');
|
var $ = require('jquery');
|
||||||
|
|
||||||
|
|
||||||
var zoomscrollModule = require('../../../../../lib/features/zoomscroll'),
|
var zoomscrollModule = require('../../../../lib/features/zoomscroll'),
|
||||||
bpmnModule = require('../../../../../lib/draw');
|
bpmnModule = require('../../../../lib/draw');
|
||||||
|
|
||||||
|
|
||||||
describe('features - zoomscroll', function() {
|
describe('features - zoomscroll', function() {
|
|
@ -10,8 +10,8 @@ var fs = require('fs');
|
||||||
|
|
||||||
var Diagram = require('diagram-js/lib/Diagram'),
|
var Diagram = require('diagram-js/lib/Diagram'),
|
||||||
BpmnModel = require('bpmn-moddle'),
|
BpmnModel = require('bpmn-moddle'),
|
||||||
Importer = require('../../../../lib/import/Importer'),
|
Importer = require('../../../lib/import/Importer'),
|
||||||
Viewer = require('../../../../lib/Viewer');
|
Viewer = require('../../../lib/Viewer');
|
||||||
|
|
||||||
|
|
||||||
describe('import - importer', function() {
|
describe('import - importer', function() {
|
Loading…
Reference in New Issue