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