mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-28 03:16:16 -04:00
some debug logs
This commit is contained in:
parent
7bd5435f50
commit
947e663de3
2 changed files with 19 additions and 11 deletions
|
@ -57,7 +57,8 @@ describe('Responsiveness of Editor', function() {
|
|||
return inner$('div').text().length > length;
|
||||
}).done(function(){
|
||||
|
||||
expect( inner$('div').text().length ).to.be.greaterThan( length ); // has the text changed?
|
||||
var oldLength = inner$('body')[0].textContent.length;
|
||||
console.log(oldLength)
|
||||
var start = Date.now(); // get the start time
|
||||
|
||||
// send some new text to the screen (ensure all 3 key events are sent)
|
||||
|
@ -72,17 +73,18 @@ describe('Responsiveness of Editor', function() {
|
|||
}
|
||||
|
||||
helper.waitFor(function(){ // Wait for the ability to process
|
||||
console.log(inner$('body')[0].textContent.length)
|
||||
var el = inner$('body');
|
||||
if(el[0].textContent.length > amount) return true;
|
||||
}).done(function(){
|
||||
if(el[0].textContent.length > oldLength) return true;
|
||||
}, 5000).done(function(){
|
||||
var end = Date.now(); // get the current time
|
||||
var delay = end - start; // get the delay as the current time minus the start time
|
||||
|
||||
expect(delay).to.be.below(600);
|
||||
done();
|
||||
}, 5000);
|
||||
});
|
||||
|
||||
}, 10000);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue