Added a test

This commit is contained in:
Jonathan Frederic 2014-03-24 17:00:43 -07:00
parent e235b47472
commit db2e16f2e1

View File

@ -104,5 +104,10 @@ casper.notebook_test(function () {
this.execute_cell_then(index, function(index){
this.test.assertEquals(this.get_output_cell(index).text, '1\n', // 0 based
'selected_index property updated with tab change.');
var is_collapsed = this.evaluate(function(s){
return $(s + ' div.accordion-group:nth-child(2) a').hasClass('collapsed'); // 1 based
}, {s: multicontainer2_query});
this.test.assertEquals(is_collapsed, false, 'Was tab actually opened?');
});
});