From 93831f0dfc576182155c1090e56c6def890fefd6 Mon Sep 17 00:00:00 2001 From: Paul Ivanov Date: Mon, 25 Nov 2013 18:13:26 -0800 Subject: [PATCH] clear output in-between test runs --- IPython/html/tests/casperjs/test_cases/isolated_svg.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IPython/html/tests/casperjs/test_cases/isolated_svg.js b/IPython/html/tests/casperjs/test_cases/isolated_svg.js index 0e2aa7a00..284999ab3 100644 --- a/IPython/html/tests/casperjs/test_cases/isolated_svg.js +++ b/IPython/html/tests/casperjs/test_cases/isolated_svg.js @@ -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 () {