use test.begin to give test group a name

Paul Ivanov 13 years ago
parent 641f157fd9
commit 217b43cf87

@ -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 ');
});
});
});
});

Loading…
Cancel
Save