mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
29 lines
833 B
JavaScript
29 lines
833 B
JavaScript
|
|
//
|
|
// Miscellaneous javascript tests
|
|
//
|
|
casper.notebook_test(function () {
|
|
this.evaluate(function () {
|
|
IPython.notebook.kernel.kernel_info(
|
|
function(msg){
|
|
IPython._kernel_info_response = msg;
|
|
})
|
|
});
|
|
|
|
this.waitFor(
|
|
function () {
|
|
return this.evaluate(function(){
|
|
return IPython._kernel_info_response;
|
|
});
|
|
});
|
|
|
|
this.then(function () {
|
|
var kernel_info_response = this.evaluate(function(){
|
|
return IPython._kernel_info_response;
|
|
});
|
|
this.test.assertTrue( kernel_info_response.msg_type === 'kernel_info_reply', 'Kernel info request return kernel_info_reply');
|
|
this.test.assertTrue( kernel_info_response.content !== undefined, 'Kernel_info_reply is not undefined');
|
|
});
|
|
|
|
});
|