mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
get_text() before returning results
This commit is contained in:
parent
af03114ef6
commit
744f057cab
@ -25,7 +25,7 @@ casper.notebook_test(function() {
|
||||
set_cells_text();
|
||||
var output_above = this.evaluate(function () {
|
||||
IPython.notebook.merge_cell_above();
|
||||
return IPython.notebook.get_selected_cell();
|
||||
return IPython.notebook.get_selected_cell().get_text();
|
||||
});
|
||||
|
||||
// merge_cell_below()
|
||||
@ -33,7 +33,7 @@ casper.notebook_test(function() {
|
||||
var output_below = this.evaluate(function() {
|
||||
IPython.notebook.select(0);
|
||||
IPython.notebook.merge_cell_below();
|
||||
return IPython.notebook.get_selected_cell();
|
||||
return IPython.notebook.get_selected_cell().get_text();
|
||||
});
|
||||
|
||||
this.test.assertEquals(output_above, 'a = 5\nprint(a)',
|
||||
|
Loading…
Reference in New Issue
Block a user