bpmn-js/test/spec/features/label-editing/TouchIntegrationSpec.js

40 lines
871 B
JavaScript

'use strict';
var TestHelper = require('../../../TestHelper');
var TestContainer = require('mocha-test-container-support');
var Modeler = require('../../../../lib/Modeler');
describe('direct editing - touch integration', function() {
var container;
beforeEach(function() {
container = TestContainer.get(this);
});
function createModeler(xml, done) {
var modeler = new Modeler({ container: container });
modeler.importXML(xml, function(err) {
done(err, modeler);
});
}
it('should work on modeler (manual test)', function(done) {
var xml = require('../../../fixtures/bpmn/simple.bpmn');
createModeler(xml, done);
});
it('should edit labels via double tap (manual test)', function(done) {
var xml = require('../../../fixtures/bpmn/features/label-editing/labels.bpmn');
createModeler(xml, done);
});
});