From 642f8224af1519461603500ecae5fb459cca3c91 2014-01-29 22:37:00 From: MinRK Date: 2014-01-29 22:37:00 Subject: [PATCH] update shutdown_notebook now that get_output_cell raises if there is no such output --- diff --git a/IPython/html/tests/casperjs/test_cases/shutdown_notebook.js b/IPython/html/tests/casperjs/test_cases/shutdown_notebook.js index 45cc9f1..3bdd38f 100644 --- a/IPython/html/tests/casperjs/test_cases/shutdown_notebook.js +++ b/IPython/html/tests/casperjs/test_cases/shutdown_notebook.js @@ -35,8 +35,10 @@ casper.notebook_test(function () { }); this.then(function () { - var result = this.get_output_cell(0); - this.test.assertFalsy(result, "after shutdown: no execution results"); + var outputs = this.evaluate(function() { + return IPython.notebook.get_cell(0).output_area.outputs; + }) + this.test.assertEquals(outputs.length, 0, "after shutdown: no execution results"); this.test.assertNot(this.kernel_running(), 'after shutdown: IPython.notebook.kernel.running is false '); });