mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 03:16:16 -04:00
trying to add a delay to allow browsers to catch up with responsiveness test
This commit is contained in:
parent
411b278881
commit
37968db022
1 changed files with 3 additions and 2 deletions
|
@ -72,14 +72,15 @@ describe('Responsiveness of Editor', function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
helper.waitFor(function(){ // Wait for the ability to process
|
helper.waitFor(function(){ // Wait for the ability to process
|
||||||
return true; // Ghetto but works for now
|
var el = inner$('body');
|
||||||
|
if(el[0].textContent.length > amount) return true;
|
||||||
}).done(function(){
|
}).done(function(){
|
||||||
var end = Date.now(); // get the current time
|
var end = Date.now(); // get the current time
|
||||||
var delay = end - start; // get the delay as the current time minus the start time
|
var delay = end - start; // get the delay as the current time minus the start time
|
||||||
|
|
||||||
expect(delay).to.be.below(400);
|
expect(delay).to.be.below(400);
|
||||||
done();
|
done();
|
||||||
}, 1000);
|
}, 5000);
|
||||||
|
|
||||||
}, 10000);
|
}, 10000);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue