Show More
@@ -5,9 +5,9 b' casper.notebook_test(function () {' | |||
|
5 | 5 | var result = this.evaluate(function() { |
|
6 | 6 | IPython.notebook.command_mode(); |
|
7 | 7 | pos0 = IPython.notebook.get_selected_index(); |
|
8 | IPython.utils.press(IPython.keycodes.b) | |
|
8 | IPython.utils.press(IPython.keyboard.keycodes.b) | |
|
9 | 9 | pos1 = IPython.notebook.get_selected_index(); |
|
10 | IPython.utils.press(IPython.keycodes.b) | |
|
10 | IPython.utils.press(IPython.keyboard.keycodes.b) | |
|
11 | 11 | pos2 = IPython.notebook.get_selected_index(); |
|
12 | 12 | // Simulate the "up arrow" and "down arrow" keys. |
|
13 | 13 | IPython.utils.press_up(); |
@@ -9,7 +9,7 b' casper.notebook_test(function() {' | |||
|
9 | 9 | var cell_one = IPython.notebook.get_selected_cell(); |
|
10 | 10 | cell_one.set_text('a = 5'); |
|
11 | 11 | |
|
12 | IPython.utils.press(IPython.keycodes.b) | |
|
12 | IPython.utils.press(IPython.keyboard.keycodes.b) | |
|
13 | 13 | var cell_two = IPython.notebook.get_selected_cell(); |
|
14 | 14 | cell_two.set_text('print(a)'); |
|
15 | 15 | }; |
General Comments 0
You need to be logged in to leave comments.
Login now