##// END OF EJS Templates
Improve handling of cursor_start and cursor_end for completions....
Improve handling of cursor_start and cursor_end for completions. Improve handling of cursor_start and cursor_end for completions. Improve handling of cursor_start and cursor_end for completions. Fix handling of end != cursor_position Fix handling of cursor offset and handle end <= start. Fix handling of cursor offset and handle end <= start. Reinstate extra whitespace More whitespace reinstating Still more whitespace Finalwhitespace Add a guard on start Fix logic for end > cursor_pos Another ws add WS tweak WS again

File last commit:

r15946:60417138
r18322:0d782d54
Show More
dualmode_movecell.js
24 lines | 1.0 KiB | application/javascript | JavascriptLexer
Jonathan Frederic
Cleaned up test names and locations.
r15936
// Test
casper.notebook_test(function () {
var a = 'print("a")';
var index = this.append_cell(a);
this.execute_cell_then(index);
var b = 'print("b")';
index = this.append_cell(b);
this.execute_cell_then(index);
this.then(function () {
Jonathan Frederic
Plus to minus shortcuts rebase fixes
r15946 // Cell movement ( ctrl-(k or j) )
Jonathan Frederic
Cleaned up test names and locations.
r15936 this.select_cell(2);
this.test.assertEquals(this.get_cell_text(2), b, 'select 2; Cell 2 text is correct');
Jonathan Frederic
Plus to minus shortcuts rebase fixes
r15946 this.trigger_keydown('ctrl-k'); // Move cell 2 up one
this.test.assertEquals(this.get_cell_text(1), b, 'ctrl-k; Cell 1 text is correct');
this.test.assertEquals(this.get_cell_text(2), a, 'ctrl-k; Cell 2 text is correct');
this.validate_notebook_state('ctrl-k', 'command', 1);
this.trigger_keydown('ctrl-j'); // Move cell 1 down one
this.test.assertEquals(this.get_cell_text(1), a, 'ctrl-j; Cell 1 text is correct');
this.test.assertEquals(this.get_cell_text(2), b, 'ctrl-j; Cell 2 text is correct');
this.validate_notebook_state('ctrl-j', 'command', 2);
Jonathan Frederic
Cleaned up test names and locations.
r15936 });
});