##// END OF EJS Templates
less convoluted way of grabbing output
Paul Ivanov -
Show More
@@ -13,7 +13,7 casper.notebookTest(function () {
13 this.then(function () {
13 this.then(function () {
14 var result = this.evaluate(function () {
14 var result = this.evaluate(function () {
15 var cell = IPython.notebook.get_cell(0);
15 var cell = IPython.notebook.get_cell(0);
16 var output = cell.element.find('.output_area').find('pre').html();
16 var output = cell.output_area.outputs[0].text;
17 return output;
17 return output;
18 })
18 })
19 this.test.assertEquals(result, '10\n', 'stdout output matches')
19 this.test.assertEquals(result, '10\n', 'stdout output matches')
General Comments 0
You need to be logged in to leave comments. Login now