Show More
@@ -262,8 +262,7 IPython.keyboard = (function (IPython) { | |||
|
262 | 262 | normalize_key : normalize_key, |
|
263 | 263 | normalize_shortcut : normalize_shortcut, |
|
264 | 264 | shortcut_to_event : shortcut_to_event, |
|
265 |
event_to_shortcut : event_to_shortcut |
|
|
266 | trigger_keydown : trigger_keydown | |
|
265 | event_to_shortcut : event_to_shortcut | |
|
267 | 266 | }; |
|
268 | 267 | |
|
269 | 268 | }(IPython)); |
@@ -10,12 +10,12 casper.notebook_test(function () { | |||
|
10 | 10 | for (i = 0; i < ncells; i++) { |
|
11 | 11 | IPython.notebook.delete_cell(); |
|
12 | 12 | } |
|
13 | ||
|
14 | // Simulate the "up arrow" and "down arrow" keys. | |
|
15 | // | |
|
16 | IPython.keyboard.trigger_keydown('up'); | |
|
17 | IPython.keyboard.trigger_keydown('down'); | |
|
13 | ||
|
18 | 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 | 20 | this.test.assertTrue(result, 'Up/down arrow okay in empty notebook.'); |
|
21 | 21 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now