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