Show More
@@ -130,11 +130,11 b' casper.notebook_test(function () {' | |||
|
130 | 130 | }; |
|
131 | 131 | |
|
132 | 132 | this.is_cell_selected = function(i) { |
|
133 |
return this. |
|
|
133 | return this.is_cell_on(i, 'selected', 'unselected'); | |
|
134 | 134 | }; |
|
135 | 135 | |
|
136 | 136 | this.is_cell_edit = function(i) { |
|
137 |
return this. |
|
|
137 | return this.is_cell_on(i, 'edit_mode', 'command_mode'); | |
|
138 | 138 | }; |
|
139 | 139 | |
|
140 | 140 | this.click_cell = function(index) { |
@@ -165,7 +165,7 b' casper.notebook_test(function () {' | |||
|
165 | 165 | return this._is_cell_inputfield(i, '.CodeMirror-focused *'); |
|
166 | 166 | }; |
|
167 | 167 | |
|
168 |
this. |
|
|
168 | this.is_cell_on = function(i, on_class, off_class) { | |
|
169 | 169 | var cells = this._get_cells(); |
|
170 | 170 | for (var j = 0; j < cells.length; j++) { |
|
171 | 171 | if (j === i) { |
General Comments 0
You need to be logged in to leave comments.
Login now