Jonathan Frederic 12 years ago
parent 9c1c4f9f0a
commit aa04d40a8d

@ -154,4 +154,24 @@ casper.notebook_test(function () {
this.test.assertEquals(this.get_output_cell(index).text, '50\n',
'Invalid int textbox characters ignored');
});
index = this.append_cell(
'a = widgets.IntSlider()\n' +
'display(a)\n' +
'a.max = -1\n' +
'print("Success")\n');
this.execute_cell_then(index, function(index){
this.test.assertEquals(this.get_output_cell(index).text, 'Success\n',
'Invalid int range max bound does not cause crash.');
});
index = this.append_cell(
'a = widgets.IntSlider()\n' +
'display(a)\n' +
'a.min = 101\n' +
'print("Success")\n');
this.execute_cell_then(index, function(index){
this.test.assertEquals(this.get_output_cell(index).text, 'Success\n',
'Invalid int range min bound does not cause crash.');
});
});
Loading…
Cancel
Save