From d4513919979aa9a0ae5bd2303d6822da4120c3b1 2013-10-23 18:05:58 From: Paul Ivanov Date: 2013-10-23 18:05:58 Subject: [PATCH] use new press_up and press_down utils functions --- diff --git a/IPython/html/tests/casperjs/test_cases/empty_nb_arrow_keys.js b/IPython/html/tests/casperjs/test_cases/empty_nb_arrow_keys.js index 89e06d3..27ae89e 100644 --- a/IPython/html/tests/casperjs/test_cases/empty_nb_arrow_keys.js +++ b/IPython/html/tests/casperjs/test_cases/empty_nb_arrow_keys.js @@ -12,10 +12,9 @@ casper.notebook_test(function () { } // Simulate the "up arrow" and "down arrow" keys. - var up_press = $.Event('keydown', {which: $.ui.keyCode.UP}); - $(document).trigger(up_press); - var down_press = $.Event('keydown', {which: $.ui.keyCode.DOWN}); - $(document).trigger(down_press); + // + IPython.utils.press_up(); + IPython.utils.press_down(); return true; }); this.test.assertTrue(result, 'Up/down arrow okay in empty notebook.');