Skip to content

Commit

Permalink
Clean up clipboard_multiselect test
Browse files Browse the repository at this point in the history
  • Loading branch information
gnestor committed Dec 7, 2017
1 parent f7ab96c commit 29bdc79
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions notebook/tests/notebook/clipboard_multiselect.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

// Test
casper.notebook_test(function () {

this.append_cell('1');
this.append_cell('2');
this.append_cell('3');
Expand All @@ -20,22 +21,24 @@ casper.notebook_test(function () {

this.trigger_keydown('c'); // Copy

this.select_cell(6)
this.select_cell(7,false)
this.select_cell(6);
this.select_cell(7,false);

this.evaluate(function () {
$("#paste_cell_replace").click();
});

var expected_state = ['', '1', '2', '3', '4', 'a5', '1' ,'2' ,'3', 'd8'];

for (var i=1; i<expected_state.length; i++){
this.test.assertEquals(this.get_cell_text(i), expected_state[i],
'Verify that cell `' + i + '` has for content: `'+ expected_state[i] + '` found : ' + this.get_cell_text(i)
for (var i=1; i<expected_state.length; i++) {
this.test.assertEquals(
this.get_cell_text(i),
expected_state[i],
'Verify that cell `' + i + '` has for content: `' + expected_state[i] + '` found : ' + this.get_cell_text(i)
);
}

this.validate_notebook_state('paste-replace', 'command', 8)
this.validate_notebook_state('paste-replace', 'command', 8);

});
});

0 comments on commit 29bdc79

Please sign in to comment.