mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 08:56:17 -04:00
diable caret tests for now
This commit is contained in:
parent
617514b335
commit
47029f2e6b
1 changed files with 9 additions and 4 deletions
|
@ -1,6 +1,7 @@
|
|||
describe("As the caret is moved is the UI properly updated?", function(){
|
||||
var padName;
|
||||
var numberOfRows = 50;
|
||||
/*
|
||||
|
||||
//create a new pad before each test run
|
||||
beforeEach(function(cb){
|
||||
|
@ -8,10 +9,11 @@ describe("As the caret is moved is the UI properly updated?", function(){
|
|||
this.timeout(60000);
|
||||
});
|
||||
|
||||
it("creates a pad", function(done) {
|
||||
xit("creates a pad", function(done) {
|
||||
padName = helper.newPad(done);
|
||||
this.timeout(60000);
|
||||
});
|
||||
*/
|
||||
|
||||
/* Tests to do
|
||||
* Keystroke up (38), down (40), left (37), right (39) with and without special keys IE control / shift
|
||||
|
@ -26,10 +28,12 @@ describe("As the caret is moved is the UI properly updated?", function(){
|
|||
* How do we keep the authors focus on a line if the lines above the author are modified? We should only redraw the user to a location if they are typing and make sure shift and arrow keys aren't redrawing the UI else highlight - copy/paste would get broken
|
||||
* How can we simulate an edit event in the test framework?
|
||||
*/
|
||||
|
||||
// THIS DOESNT WORK AS IT DOESNT MOVE THE CURSOR!
|
||||
/*
|
||||
// THIS DOESNT WORK IN CHROME AS IT DOESNT MOVE THE CURSOR!
|
||||
it("down arrow", function(done){
|
||||
var inner$ = helper.padInner$;
|
||||
var chrome$ = helper.padChrome$;
|
||||
|
||||
var $newFirstTextElement = inner$("div").first();
|
||||
$newFirstTextElement.focus();
|
||||
keyEvent(inner$, 37, false, false); // arrow down
|
||||
|
@ -37,9 +41,10 @@ describe("As the caret is moved is the UI properly updated?", function(){
|
|||
|
||||
done();
|
||||
});
|
||||
/*
|
||||
|
||||
it("Creates N lines", function(done){
|
||||
var inner$ = helper.padInner$;
|
||||
console.log(inner$);
|
||||
var chrome$ = helper.padChrome$;
|
||||
var $newFirstTextElement = inner$("div").first();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue