##// END OF EJS Templates
Backport PR #6005: Changed right arrow key movement function to mirror left arrow key...
Backport PR #6005: Changed right arrow key movement function to mirror left arrow key Seems to solve Issue #5926 on this machine, and passing the test file locally. Changed from `cursor.movePosition` to `self._control.moveCursor`, the latter is what the left-arrow key uses. Also removed line 1373 which seems unnecessary and which prevents the cursor from moving at all. I'm not certain how to further test this to make sure nothing was broken.

File last commit:

r15940:36e09c7c
r17151:477b3912
Show More
empty_arrow_keys.js
21 lines | 598 B | application/javascript | JavascriptLexer
//
// Check for errors with up and down arrow presses in an empty notebook.
//
casper.notebook_test(function () {
var result = this.evaluate(function() {
var ncells = IPython.notebook.ncells();
var i;
// Delete all cells.
for (i = 0; i < ncells; i++) {
IPython.notebook.delete_cell();
}
return true;
});
// Simulate the "up arrow" and "down arrow" keys.
this.trigger_keydown('up');
this.trigger_keydown('down');
this.test.assertTrue(result, 'Up/down arrow okay in empty notebook.');
});