From 0a3461f4700dccb4ec7fdc98fd56c75e4b2da24d Mon Sep 17 00:00:00 2001 From: "Brian E. Granger" Date: Thu, 30 Jan 2014 12:53:52 -0800 Subject: [PATCH] Fixing tests from shift and ctrl enter swap. --- .../html/tests/casperjs/test_cases/execute_code_cell.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/IPython/html/tests/casperjs/test_cases/execute_code_cell.js b/IPython/html/tests/casperjs/test_cases/execute_code_cell.js index 5a415dcf53c..14db3577faf 100644 --- a/IPython/html/tests/casperjs/test_cases/execute_code_cell.js +++ b/IPython/html/tests/casperjs/test_cases/execute_code_cell.js @@ -22,7 +22,7 @@ casper.notebook_test(function () { var cell = IPython.notebook.get_cell(0); cell.set_text('a=11; print(a)'); cell.clear_output(); - IPython.utils.press_ctrl_enter(); + IPython.utils.press_shift_enter(); }); this.wait_for_output(0); @@ -31,7 +31,7 @@ casper.notebook_test(function () { var result = this.get_output_cell(0); var num_cells = this.get_cells_length(); this.test.assertEquals(result.text, '11\n', 'cell execute (using ctrl-enter)'); - this.test.assertEquals(num_cells, 2, 'ctrl-enter adds a new cell at the bottom') + this.test.assertEquals(num_cells, 2, 'shift-enter adds a new cell at the bottom') }); // do it again with the keyboard shortcut @@ -41,7 +41,7 @@ casper.notebook_test(function () { var cell = IPython.notebook.get_cell(0); cell.set_text('a=12; print(a)'); cell.clear_output(); - IPython.utils.press_shift_enter(); + IPython.utils.press_ctrl_enter(); }); this.wait_for_output(0); @@ -50,7 +50,7 @@ casper.notebook_test(function () { var result = this.get_output_cell(0); var num_cells = this.get_cells_length(); this.test.assertEquals(result.text, '12\n', 'cell execute (using shift-enter)'); - this.test.assertEquals(num_cells, 1, 'shift-enter adds no new cell at the bottom') + this.test.assertEquals(num_cells, 1, 'ctrl-enter adds no new cell at the bottom') }); // press the "play" triangle button in the toolbar