##// END OF EJS Templates
include js tests in package_data
include js tests in package_data

File last commit:

r13275:44f83150
r13276:333a27f0
Show More
execute_code_cell.js
21 lines | 557 B | application/javascript | JavascriptLexer
//
// Test code cell execution.
//
casper.notebook_test(function () {
this.evaluate(function () {
var cell = IPython.notebook.get_cell(0);
cell.set_text('a=10; print a');
cell.execute();
});
this.wait(2000);
this.then(function () {
var result = this.evaluate(function () {
var cell = IPython.notebook.get_cell(0);
var output = cell.output_area.outputs[0].text;
return output;
})
this.test.assertEquals(result, '10\n', 'stdout output matches')
});
});