diff --git a/IPython/html/tests/notebook/interrupt.js b/IPython/html/tests/notebook/interrupt.js index 7c2912c4c..24b626619 100644 --- a/IPython/html/tests/notebook/interrupt.js +++ b/IPython/html/tests/notebook/interrupt.js @@ -26,13 +26,14 @@ casper.notebook_test(function () { // run cell 0 again, now interrupting using keyboard shortcut this.thenEvaluate(function () { + var cell = IPython.notebook.get_cell(0); cell.clear_output(); cell.execute(); }); - // interrupt using Ctrl-M I keyboard shortcut + // interrupt using ii keyboard shortcut this.then(function(){ - this.trigger_keydown('i'); + this.trigger_keydown('esc', 'i', 'i'); }); this.wait_for_output(0); diff --git a/IPython/html/tests/notebook/isolated_svg.js b/IPython/html/tests/notebook/isolated_svg.js index 8c9b7636e..ac29d490e 100644 --- a/IPython/html/tests/notebook/isolated_svg.js +++ b/IPython/html/tests/notebook/isolated_svg.js @@ -21,7 +21,6 @@ casper.notebook_test(function () { "display_svg(SVG(s2), metadata=dict(isolated=True))\n" ); cell.execute(); - console.log("hello" ); }); this.then(function() { @@ -30,7 +29,6 @@ casper.notebook_test(function () { this.echo(this.currentUrl); this.evaluate(function (n) { IPython.notebook.rename(n); - console.write("hello" + n); IPython.notebook.save_notebook(); }, {n : fname}); this.echo(this.currentUrl); @@ -40,9 +38,6 @@ casper.notebook_test(function () { url = this.evaluate(function() { IPython.notebook.rename("foo"); - //$("span#notebook_name")[0].click(); - //$("input")[0].value = "please-work"; - //$(".btn-primary")[0].click(); return document.location.href; }); this.echo("renamed" + url);