Created
October 28, 2013 20:37
-
-
Save jdfreder/7204193 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// 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