##// END OF EJS Templates
add kernel test
Matthias BUSSONNIER -
Show More
@@ -0,0 +1,29 b''
1
2 //
3 // Miscellaneous javascript tests
4 //
5 casper.notebook_test(function () {
6 this.evaluate(function () {
7 IPython.notebook.kernel.kernel_info(
8 function(msg){
9 IPyton._kernel_info_response = msg;
10 })
11 });
12
13 this.waitFor(
14 function () {
15 return this.evaluate(function(){
16 return IPython._kernel_info_response;
17 });
18 });
19
20 this.then(
21 function () {
22 var kernel_info_response= this.evaluate(function(){
23 return IPython._kernel_info_response;
24 });
25 this.test.assertTrue( kernel_info_response.msg_type === 'kernel_info_reply', 'Kernel info request return kernel_info_reply');
26 this.test.assertTrue( kernel_info_response.content !== undefined, 'Kernel_info_reply is not undefined');
27 );
28
29 });
General Comments 0
You need to be logged in to leave comments. Login now