Show More
@@ -0,0 +1,21 b'' | |||
|
1 | ||
|
2 | // | |
|
3 | // Miscellaneous javascript tests | |
|
4 | // | |
|
5 | casper.notebook_test(function () { | |
|
6 | var jsver = this.evaluate(function () { | |
|
7 | var cell = IPython.notebook.get_cell(0); | |
|
8 | cell.set_text('import IPython; print IPython.__version__'); | |
|
9 | cell.execute(); | |
|
10 | return IPython.version | |
|
11 | }); | |
|
12 | ||
|
13 | this.wait_for_output(0); | |
|
14 | ||
|
15 | // refactor this into just a get_output(0) | |
|
16 | this.then(function () { | |
|
17 | var result = this.get_output_cell(0); | |
|
18 | this.test.assertEquals(result.text.trim(), jsver, 'IPython.version in JS matches IPython.'); | |
|
19 | }); | |
|
20 | ||
|
21 | }); |
General Comments 0
You need to be logged in to leave comments.
Login now