Show More
@@ -4,10 +4,20 b'' | |||
|
4 | 4 | casper.notebook_test(function () { |
|
5 | 5 | this.evaluate(function () { |
|
6 | 6 | var cell = IPython.notebook.get_cell(0); |
|
7 | cell.set_text('import time\nfor x in range(3):\n time.sleep(1)'); | |
|
7 | cell.set_text( | |
|
8 | 'import time'+ | |
|
9 | '\nfor x in range(3):'+ | |
|
10 | '\n time.sleep(1)' | |
|
11 | ); | |
|
8 | 12 | cell.execute(); |
|
9 | 13 | }); |
|
10 | 14 | |
|
15 | this.waitFor(function(){ | |
|
16 | return this.evaluate(function() { | |
|
17 | return $("#notification_kernel")[0].textContent.indexOf('busy') !== -1; | |
|
18 | }); | |
|
19 | }); | |
|
20 | ||
|
11 | 21 | |
|
12 | 22 | // interrupt using menu item (Kernel -> Interrupt) |
|
13 | 23 | this.thenClick('li#int_kernel'); |
General Comments 0
You need to be logged in to leave comments.
Login now