mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
Test based on css selection
This commit is contained in:
parent
a094df764e
commit
859e1c77b6
@ -22,10 +22,10 @@ casper.notebook_test(function () {
|
||||
return Jupyter.notebook.get_selected_cells().length;
|
||||
}), 1, 'only one cell is selected programmatically');
|
||||
|
||||
this.test.assertEquals(this.evaluate(function() {
|
||||
return $('.cell.jupyter-soft-selected').length;
|
||||
this.test.assertEquals(this.evaluate(function() {
|
||||
return $('.cell.jupyter-soft-selected, .cell.selected').length;
|
||||
}), 1, 'one cell is selected');
|
||||
|
||||
|
||||
this.test.assertEquals(this.evaluate(function() {
|
||||
Jupyter.notebook.extend_selection_by(1);
|
||||
return Jupyter.notebook.get_selected_cells().length;
|
||||
|
Loading…
Reference in New Issue
Block a user