From db2e16f2e1c342c17d883961838d4f236101eb7b Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Mon, 24 Mar 2014 17:00:43 -0700 Subject: [PATCH] Added a test --- IPython/html/tests/widgets/widget_selectioncontainer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/IPython/html/tests/widgets/widget_selectioncontainer.js b/IPython/html/tests/widgets/widget_selectioncontainer.js index 200430658..c9219e71f 100644 --- a/IPython/html/tests/widgets/widget_selectioncontainer.js +++ b/IPython/html/tests/widgets/widget_selectioncontainer.js @@ -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?'); }); }); \ No newline at end of file