less convoluted way of grabbing output

This commit is contained in:
Paul Ivanov 2013-09-24 08:02:56 -07:00
parent 6d7758271e
commit b75cd967d7

View File

@ -13,7 +13,7 @@ casper.notebookTest(function () {
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();
var output = cell.output_area.outputs[0].text;
return output;
})
this.test.assertEquals(result, '10\n', 'stdout output matches')