##// END OF EJS Templates
Partial fix of problems b/c keydown move
Jonathan Frederic -
Show More
@@ -262,8 +262,7 b' IPython.keyboard = (function (IPython) {'
262 normalize_key : normalize_key,
262 normalize_key : normalize_key,
263 normalize_shortcut : normalize_shortcut,
263 normalize_shortcut : normalize_shortcut,
264 shortcut_to_event : shortcut_to_event,
264 shortcut_to_event : shortcut_to_event,
265 event_to_shortcut : event_to_shortcut,
265 event_to_shortcut : event_to_shortcut
266 trigger_keydown : trigger_keydown
267 };
266 };
268
267
269 }(IPython));
268 }(IPython));
@@ -10,12 +10,12 b' casper.notebook_test(function () {'
10 for (i = 0; i < ncells; i++) {
10 for (i = 0; i < ncells; i++) {
11 IPython.notebook.delete_cell();
11 IPython.notebook.delete_cell();
12 }
12 }
13
13
14 // Simulate the "up arrow" and "down arrow" keys.
15 //
16 IPython.keyboard.trigger_keydown('up');
17 IPython.keyboard.trigger_keydown('down');
18 return true;
14 return true;
19 });
15 });
16
17 // Simulate the "up arrow" and "down arrow" keys.
18 this.trigger_keydown('up');
19 this.trigger_keydown('down');
20 this.test.assertTrue(result, 'Up/down arrow okay in empty notebook.');
20 this.test.assertTrue(result, 'Up/down arrow okay in empty notebook.');
21 });
21 });
@@ -25,6 +25,10 b' casper.notebook_test(function () {'
25 IPython.keyboard.trigger_keydown('shift-enter');
25 IPython.keyboard.trigger_keydown('shift-enter');
26 });
26 });
27
27
28 this.then(function(){
29
30 });
31
28 this.wait_for_output(0);
32 this.wait_for_output(0);
29
33
30 this.then(function () {
34 this.then(function () {
General Comments 0
You need to be logged in to leave comments. Login now