focus the last pasted cell, and add test

pull/799/head
Matthias Bussonnier 11 years ago
parent a863916505
commit f1db9c4b99

@ -1390,13 +1390,12 @@ define(function (require) {
this.delete_cells(selected);
for (var i=this.clipboard.length-1; i >= 0; i--) {
debugger;
var cell_data = this.clipboard[i];
var new_cell = this.insert_cell_at_index(cell_data.cell_type, insertion_index);
new_cell.fromJSON(cell_data);
}
this.select(insertion_index);
this.select(insertion_index+this.clipboard.length-1);
};
/**

@ -35,5 +35,7 @@ casper.notebook_test(function () {
);
}
this.validate_notebook_state('paste-replace', 'command', 8)
});
});

Loading…
Cancel
Save