Show More
@@ -4,7 +4,7 b'' | |||||
4 | casper.notebook_test(function () { |
|
4 | casper.notebook_test(function () { | |
5 | this.evaluate(function () { |
|
5 | this.evaluate(function () { | |
6 | var cell = IPython.notebook.get_cell(0); |
|
6 | var cell = IPython.notebook.get_cell(0); | |
7 |
cell.set_text('a=10; print |
|
7 | cell.set_text('a=10; print(a)'); | |
8 | cell.execute(); |
|
8 | cell.execute(); | |
9 | }); |
|
9 | }); | |
10 |
|
10 |
@@ -10,7 +10,7 b' casper.notebook_test(function() {' | |||||
10 |
|
10 | |||
11 | IPython.notebook.insert_cell_below('code'); |
|
11 | IPython.notebook.insert_cell_below('code'); | |
12 | var cell_two = IPython.notebook.get_selected_cell(); |
|
12 | var cell_two = IPython.notebook.get_selected_cell(); | |
13 |
cell_two.set_text('print |
|
13 | cell_two.set_text('print(a)'); | |
14 | }; |
|
14 | }; | |
15 |
|
15 | |||
16 | // merge_cell_above() |
|
16 | // merge_cell_above() | |
@@ -30,8 +30,8 b' casper.notebook_test(function() {' | |||||
30 | }; |
|
30 | }; | |
31 | }); |
|
31 | }); | |
32 |
|
32 | |||
33 |
this.test.assertEquals(output.above, 'a = 5\nprint |
|
33 | this.test.assertEquals(output.above, 'a = 5\nprint(a)', | |
34 | 'Successful insert_cell_above().'); |
|
34 | 'Successful insert_cell_above().'); | |
35 |
this.test.assertEquals(output.below, 'a = 5\nprint |
|
35 | this.test.assertEquals(output.below, 'a = 5\nprint(a)', | |
36 | 'Successful insert_cell_below().'); |
|
36 | 'Successful insert_cell_below().'); | |
37 | }); |
|
37 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now