From 3bae2814d7c54a5aa2905c7dc7a71f2693dee191 2013-10-23 18:05:59 From: Paul Ivanov Date: 2013-10-23 18:05:59 Subject: [PATCH] use test.begin to give test group a name --- diff --git a/IPython/html/tests/casperjs/test_cases/shutdown_notebook.js b/IPython/html/tests/casperjs/test_cases/shutdown_notebook.js index db51421..bc0c7eb 100644 --- a/IPython/html/tests/casperjs/test_cases/shutdown_notebook.js +++ b/IPython/html/tests/casperjs/test_cases/shutdown_notebook.js @@ -2,11 +2,12 @@ // Test shutdown of a kernel. // casper.notebook_test(function () { - this.test.begin("shutdown tests", 2, function(test) { - casper.evaluate(function () { + this.test.begin("shutdown tests (notebook)", 2, function(test) { + + casper.thenEvaluate(function () { $('#kill_and_exit').click(); }); - + casper.thenEvaluate(function () { var cell = IPython.notebook.get_cell(0); cell.set_text('a=10; print(a)'); @@ -18,8 +19,9 @@ casper.notebook_test(function () { var result = this.get_output_cell(0); test.assertFalsy(result, "after shutdown: no execution results"); test.assertNot(this.kernel_running(), - 'after shutdown: IPython.notebook.kernel is false '); + 'after shutdown: IPython.notebook.kernel.running is false '); }); -}); }); +}); +