Show More
@@ -1,29 +1,28 b'' | |||
|
1 | 1 | |
|
2 | 2 | // |
|
3 | 3 | // Miscellaneous javascript tests |
|
4 | 4 | // |
|
5 | 5 | casper.notebook_test(function () { |
|
6 | 6 | this.evaluate(function () { |
|
7 | 7 | IPython.notebook.kernel.kernel_info( |
|
8 | 8 | function(msg){ |
|
9 | 9 | IPyton._kernel_info_response = msg; |
|
10 | 10 | }) |
|
11 | 11 | }); |
|
12 | 12 | |
|
13 | 13 | this.waitFor( |
|
14 | 14 | function () { |
|
15 | 15 | return this.evaluate(function(){ |
|
16 | 16 | return IPython._kernel_info_response; |
|
17 | 17 | }); |
|
18 | 18 | }); |
|
19 | 19 | |
|
20 | this.then( | |
|
21 | function () { | |
|
22 |
|
|
|
23 | return IPython._kernel_info_response; | |
|
20 | this.then(function () { | |
|
21 | var kernel_info_response= this.evaluate(function(){ | |
|
22 | return IPython._kernel_info_response; | |
|
24 | 23 | }); |
|
25 | 24 | this.test.assertTrue( kernel_info_response.msg_type === 'kernel_info_reply', 'Kernel info request return kernel_info_reply'); |
|
26 | 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