clear output in-between test runs

This commit is contained in:
Paul Ivanov 2013-11-25 18:13:26 -08:00
parent 459b5ea7ad
commit 93831f0dfc

View File

@ -69,13 +69,16 @@ casper.notebook_test(function () {
// now ensure that we can pass the same metadata dict to plain old display()
this.thenEvaluate(function () {
var cell = IPython.notebook.get_cell(0);
cell.clear_output();
cell.set_text( "from IPython.display import display\n"
+ "display(SVG(s1), metadata=dict(isolated=True))\n"
+ "display(SVG(s2), metadata=dict(isolated=True))\n"
);
cell.execute();
});
this.wait_for_output(0);
// same test as original
this.then(function () {
var colors = this.evaluate(function () {