notebook/IPython/html/tests/services/session.js
2014-10-08 11:30:29 -07:00

25 lines
558 B
JavaScript

//
// Tests for the Session object
//
casper.notebook_test(function () {
this.then(function () {
this.test.assert(this.kernel_running(), 'session: kernel is running');
});
this.thenEvaluate(function () {
IPython.notebook.session.delete();
});
this.waitFor(function () {
return this.evaluate(function () {
return IPython.notebook.kernel.is_fully_disconnected();
});
});
this.then(function () {
this.test.assert(!this.kernel_running(), 'session deletes kernel');
});
});