##// END OF EJS Templates
yet another JS race condition fix...
Paul Ivanov -
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');
@@ -67,6 +67,10 b' casper.wait_for_output = function (cell_num) {'
67 67 },
68 68 // pass parameter from the test suite js to the browser code js
69 69 {c : cell_num});
70 },
71 function then() { },
72 function timeout() {
73 this.echo("wait_for_output timedout!");
70 74 });
71 75 });
72 76 };
General Comments 0
You need to be logged in to leave comments. Login now