##// END OF EJS Templates
Added test
Jonathan Frederic -
Show More
@@ -154,4 +154,24 b' casper.notebook_test(function () {'
154 this.test.assertEquals(this.get_output_cell(index).text, '50\n',
154 this.test.assertEquals(this.get_output_cell(index).text, '50\n',
155 'Invalid int textbox characters ignored');
155 'Invalid int textbox characters ignored');
156 });
156 });
157
158 index = this.append_cell(
159 'a = widgets.IntSlider()\n' +
160 'display(a)\n' +
161 'a.max = -1\n' +
162 'print("Success")\n');
163 this.execute_cell_then(index, function(index){
164 this.test.assertEquals(this.get_output_cell(index).text, 'Success\n',
165 'Invalid int range max bound does not cause crash.');
166 });
167
168 index = this.append_cell(
169 'a = widgets.IntSlider()\n' +
170 'display(a)\n' +
171 'a.min = 101\n' +
172 'print("Success")\n');
173 this.execute_cell_then(index, function(index){
174 this.test.assertEquals(this.get_output_cell(index).text, 'Success\n',
175 'Invalid int range min bound does not cause crash.');
176 });
157 }); No newline at end of file
177 });
General Comments 0
You need to be logged in to leave comments. Login now