##// END OF EJS Templates
adjust some events in nb_roundtrip...
MinRK -
Show More
@@ -64,9 +64,12 b' function clear_and_execute(that, code) {'
64 IPython.notebook.get_cell(0).clear_output();
64 IPython.notebook.get_cell(0).clear_output();
65 IPython.notebook.get_cell(1).clear_output();
65 IPython.notebook.get_cell(1).clear_output();
66 });
66 });
67 that.set_cell_text(0, code);
67 that.then(function () {
68 that.execute_cell(0);
68 that.set_cell_text(0, code);
69 }
69 that.execute_cell(0);
70 that.wait_for_idle();
71 });
72 };
70
73
71 casper.notebook_test(function () {
74 casper.notebook_test(function () {
72 this.evaluate(function () {
75 this.evaluate(function () {
@@ -77,13 +80,9 b' casper.notebook_test(function () {'
77 "IPython.notebook.insert_cell_below('code')"
80 "IPython.notebook.insert_cell_below('code')"
78 ].join('\n')
81 ].join('\n')
79 );
82 );
80
81 cell.execute();
82 });
83 });
83
84
84 this.wait_for_output(0);
85 this.execute_cell_then(0, function () {
85
86 this.then(function ( ) {
87 var result = this.get_output_cell(0);
86 var result = this.get_output_cell(0);
88 var num_cells = this.get_cells_length();
87 var num_cells = this.get_cells_length();
89 this.test.assertEquals(num_cells, 2, '%%javascript magic works');
88 this.test.assertEquals(num_cells, 2, '%%javascript magic works');
General Comments 0
You need to be logged in to leave comments. Login now