Partial fix of problems b/c keydown move

This commit is contained in:
Jonathan Frederic 2014-03-13 09:59:42 -07:00
parent 147f35d899
commit ae2b0800cf
3 changed files with 10 additions and 7 deletions

View File

@ -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));

View File

@ -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.');
});

View File

@ -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 () {