Skip to content

Instantly share code, notes, and snippets.

@jdfreder
Created October 28, 2013 20:37
Show Gist options
  • Save jdfreder/7204193 to your computer and use it in GitHub Desktop.
Save jdfreder/7204193 to your computer and use it in GitHub Desktop.
//
// Test the create of a widget.
//
casper.notebook_test(function () {
// XXX: test.begin allows named sections but requires casperjs 1.1.0-DEV.
// We will put it back into place when the next version of casper is
// released. Following that, all instances of this.test can be changed
// to just test.
//this.test.begin("shutdown tests (notebook)", 2, function(test) {
this.evaluate(function () {
var cell = IPython.notebook.get_cell(0);
cell.set_text('from IPython.html.widgets import *\n' +
'from IPython.display import display, clear_output\n' +
'init_widget_js()');
cell.execute();
});
this.wait_for_output(0);
this.test.assert(true, 'True is true');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment