Show More
@@ -8,7 +8,18 b' casper.notebook_test(function () {' | |||||
8 | cell.execute(); |
|
8 | cell.execute(); | |
9 | }); |
|
9 | }); | |
10 |
|
10 | |||
11 | this.wait(2000); |
|
11 | ||
|
12 | this.waitFor(function () { | |||
|
13 | return this.evaluate(function get_output() { | |||
|
14 | var cell = IPython.notebook.get_cell(0); | |||
|
15 | return cell.output_area.outputs.length != 0; | |||
|
16 | }) | |||
|
17 | }, null, function on_timeout() { | |||
|
18 | this.echo( this.evaluate( function() { | |||
|
19 | IPython.notebook.save_notebook(); | |||
|
20 | return IPython.notebook.notebook_name; | |||
|
21 | }) + ".ipynb is the name of the notebook which failed"); | |||
|
22 | }); | |||
12 |
|
23 | |||
13 | this.then(function () { |
|
24 | this.then(function () { | |
14 | var result = this.evaluate(function () { |
|
25 | var result = this.evaluate(function () { |
General Comments 0
You need to be logged in to leave comments.
Login now