and a note on manual changes in dataTables.bootstrap.css
[myslice.git] / third-party / jquery-ui-1.10.2 / tests / unit / accordion / accordion_test_helpers.js
1 TestHelpers.accordion = {
2         equalHeight: function( accordion, height ) {
3                 accordion.find( ".ui-accordion-content" ).each(function() {
4                         equal( $( this ).outerHeight(), height );
5                 });
6         },
7
8         setupTeardown: function() {
9                 var animate = $.ui.accordion.prototype.options.animate;
10                 return {
11                         setup: function() {
12                                 $.ui.accordion.prototype.options.animate = false;
13                         },
14                         teardown: function() {
15                                 $.ui.accordion.prototype.options.animate = animate;
16                         }
17                 };
18         },
19
20         state: function( accordion ) {
21                 var expected = $.makeArray( arguments ).slice( 1 ),
22                         actual = accordion.find( ".ui-accordion-content" ).map(function() {
23                         return $( this ).css( "display" ) === "none" ? 0 : 1;
24                 }).get();
25                 QUnit.push( QUnit.equiv(actual, expected), actual, expected );
26         }
27 };