diable caret tests for now

This commit is contained in:
John McLear 2014-11-27 23:10:40 +00:00
parent 617514b335
commit 47029f2e6b
1 changed files with 9 additions and 4 deletions

View File

@ -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();