fix interrupt test revealed by new output

the shortcut test wasn’t running at all,
due to a ReferenceError.

There was no indication of this fact
because javascript is awesome like that.
MinRK 12 years ago
parent 1f0646f893
commit 41e482d47a

@ -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);

@ -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);

Loading…
Cancel
Save