test(import+export): increase timeouts

This commit is contained in:
Nico Rehwaldt 2015-07-20 17:13:47 +02:00
parent 363ce892c9
commit b9f30d77bb
2 changed files with 7 additions and 6 deletions

View File

@ -50,7 +50,9 @@ describe('bpmn-moddle', function() {
// when // when
parse(xml, function(err) { parse(xml, function(err) {
expect((new Date().getTime() - start)).to.be.below(500);
// parsing a XML document should not take too long
expect((new Date().getTime() - start)).to.be.below(1000);
done(err); done(err);
}); });

View File

@ -217,8 +217,7 @@ describe('Viewer', function() {
}); });
it it('should handle invalid namespaced element', function(done) {
('should handle invalid namespaced element', function(done) {
var xml = require('../fixtures/bpmn/error/categoryValue.bpmn'); var xml = require('../fixtures/bpmn/error/categoryValue.bpmn');
@ -355,8 +354,8 @@ describe('Viewer', function() {
// then // then
expect(isValid(svg)).to.be.true; expect(isValid(svg)).to.be.true;
// no svg export should take more than 500ms // no svg export should not take too long
expect(currentTime() - time).to.be.below(500); expect(currentTime() - time).to.be.below(1000);
done(); done();
}); });
@ -367,7 +366,7 @@ describe('Viewer', function() {
it('should remove outer-makers on export', function(done) { it('should remove outer-makers on export', function(done) {
// given // given
var xml = require('../fixtures/bpmn/complex.bpmn'); var xml = require('../fixtures/bpmn/simple.bpmn');
function appendTestRect(svgDoc) { function appendTestRect(svgDoc) {
var rect = document.createElementNS(svgDoc.namespaceURI, 'rect'); var rect = document.createElementNS(svgDoc.namespaceURI, 'rect');
rect.setAttribute('class', 'outer-bound-marker'); rect.setAttribute('class', 'outer-bound-marker');