2014-07-07 15:17:41 +00:00
|
|
|
'use strict';
|
|
|
|
|
2014-10-30 11:06:43 +00:00
|
|
|
var TestHelper = require('../../../TestHelper');
|
2014-07-07 15:17:41 +00:00
|
|
|
|
|
|
|
|
2014-08-01 05:16:59 +00:00
|
|
|
var Modeler = require('../../../../lib/Modeler');
|
2014-07-07 15:17:41 +00:00
|
|
|
|
|
|
|
|
2014-10-30 11:06:43 +00:00
|
|
|
describe('direct editing - touch integration', function() {
|
2014-07-07 15:17:41 +00:00
|
|
|
|
|
|
|
var container;
|
|
|
|
|
|
|
|
beforeEach(function() {
|
|
|
|
container = jasmine.getEnv().getTestContainer();
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
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) {
|
2015-03-31 12:17:15 +00:00
|
|
|
var xml = require('../../../fixtures/bpmn/simple.bpmn');
|
2014-07-07 15:17:41 +00:00
|
|
|
createModeler(xml, done);
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2014-10-30 11:06:43 +00:00
|
|
|
it('should edit labels via double tap (manual test)', function(done) {
|
2015-03-31 12:17:15 +00:00
|
|
|
var xml = require('../../../fixtures/bpmn/features/label-editing/labels.bpmn');
|
2014-10-30 11:06:43 +00:00
|
|
|
createModeler(xml, done);
|
2014-07-07 15:17:41 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|