##// END OF EJS Templates
set default value from signature defaults in interact...
set default value from signature defaults in interact If available, use the default value from the signature for the initial condition, when using range/choice abbreviations. Not affected: - single-value abbreviations (`@interact(a=5)` sets `a=5`) - explicit Widgets

File last commit:

r15202:035332de
r15348:856bcf11
Show More
misc.js
21 lines | 569 B | application/javascript | JavascriptLexer
Paul Ivanov
added test of IPython.version to js test suite
r13537
//
// Miscellaneous javascript tests
//
casper.notebook_test(function () {
var jsver = this.evaluate(function () {
var cell = IPython.notebook.get_cell(0);
MinRK
fix js test print statement on python 3
r13538 cell.set_text('import IPython; print(IPython.__version__)');
Paul Ivanov
added test of IPython.version to js test suite
r13537 cell.execute();
MinRK
fix js test print statement on python 3
r13538 return IPython.version;
Paul Ivanov
added test of IPython.version to js test suite
r13537 });
this.wait_for_output(0);
// refactor this into just a get_output(0)
this.then(function () {
var result = this.get_output_cell(0);
this.test.assertEquals(result.text.trim(), jsver, 'IPython.version in JS matches IPython.');
});
});