mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
Partial fix of problems b/c keydown move
This commit is contained in:
parent
147f35d899
commit
ae2b0800cf
@ -262,8 +262,7 @@ IPython.keyboard = (function (IPython) {
|
||||
normalize_key : normalize_key,
|
||||
normalize_shortcut : normalize_shortcut,
|
||||
shortcut_to_event : shortcut_to_event,
|
||||
event_to_shortcut : event_to_shortcut,
|
||||
trigger_keydown : trigger_keydown
|
||||
event_to_shortcut : event_to_shortcut
|
||||
};
|
||||
|
||||
}(IPython));
|
||||
|
@ -10,12 +10,12 @@ casper.notebook_test(function () {
|
||||
for (i = 0; i < ncells; i++) {
|
||||
IPython.notebook.delete_cell();
|
||||
}
|
||||
|
||||
// Simulate the "up arrow" and "down arrow" keys.
|
||||
//
|
||||
IPython.keyboard.trigger_keydown('up');
|
||||
IPython.keyboard.trigger_keydown('down');
|
||||
|
||||
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.');
|
||||
});
|
||||
|
@ -25,6 +25,10 @@ casper.notebook_test(function () {
|
||||
IPython.keyboard.trigger_keydown('shift-enter');
|
||||
});
|
||||
|
||||
this.then(function(){
|
||||
|
||||
});
|
||||
|
||||
this.wait_for_output(0);
|
||||
|
||||
this.then(function () {
|
||||
|
Loading…
Reference in New Issue
Block a user