##// END OF EJS Templates
use new press_up and press_down utils functions
Paul Ivanov -
Show More
@@ -12,10 +12,9 b' casper.notebook_test(function () {'
12 }
12 }
13
13
14 // Simulate the "up arrow" and "down arrow" keys.
14 // Simulate the "up arrow" and "down arrow" keys.
15 var up_press = $.Event('keydown', {which: $.ui.keyCode.UP});
15 //
16 $(document).trigger(up_press);
16 IPython.utils.press_up();
17 var down_press = $.Event('keydown', {which: $.ui.keyCode.DOWN});
17 IPython.utils.press_down();
18 $(document).trigger(down_press);
19 return true;
18 return true;
20 });
19 });
21 this.test.assertTrue(result, 'Up/down arrow okay in empty notebook.');
20 this.test.assertTrue(result, 'Up/down arrow okay in empty notebook.');
General Comments 0
You need to be logged in to leave comments. Login now