##// END OF EJS Templates
Use existing IPython method to kill kernels.
Use existing IPython method to kill kernels.

File last commit:

r13253:e04cf2bd
r13255:d7e3a89f
Show More
execute_code_cell.js
21 lines | 584 B | application/javascript | JavascriptLexer
David Wyde
Add CasperJS utility functions, and tests for code and...
r13249 //
// Test code cell execution.
//
David Wyde
Wrap CasperJS tests in a helper function to reduce boilerplate.
r13253 casper.notebookTest(function () {
David Wyde
Add CasperJS utility functions, and tests for code and...
r13249 this.evaluate(function () {
var cell = IPython.notebook.get_selected_cell();
cell.set_text('a=10; print a');
cell.execute();
});
David Wyde
Wrap CasperJS tests in a helper function to reduce boilerplate.
r13253 this.wait(2000);
David Wyde
Add CasperJS utility functions, and tests for code and...
r13249
David Wyde
Wrap CasperJS tests in a helper function to reduce boilerplate.
r13253 this.then(function () {
var result = this.evaluate(function () {
var cell = IPython.notebook.get_cell(0);
var output = cell.element.find('.output_area').find('pre').html();
return output;
})
this.test.assertEquals(result, '10\n', 'stdout output matches')
});
David Wyde
Add CasperJS utility functions, and tests for code and...
r13249 });