PHP Classes

File: src/MSD/HomeBundle/Resources/public/css/jquery-ui-1.10.3/tests/unit/accordion/accordion_test_helpers.js

Recommend this page to a friend!
  Classes of Manolo Salsas  >  Online PHP Image Transform  >  src/MSD/HomeBundle/Resources/public/css/jquery-ui-1.10.3/tests/unit/accordion/accordion_test_helpers.js  >  Download  
File: src/MSD/HomeBundle/Resources/public/css/jquery-ui-1.10.3/tests/unit/accordion/accordion_test_helpers.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Online PHP Image Transform
Application to do interactive image manipulation
Author: By
Last change:
Date: 2 years ago
Size: 765 bytes
 

Contents

Class file image Download
TestHelpers.accordion = {
	equalHeight: function( accordion, height ) {
		accordion.find( ".ui-accordion-content" ).each(function() {
			equal( $( this ).outerHeight(), height );
		});
	},

	setupTeardown: function() {
		var animate = $.ui.accordion.prototype.options.animate;
		return {
			setup: function() {
				$.ui.accordion.prototype.options.animate = false;
			},
			teardown: function() {
				$.ui.accordion.prototype.options.animate = animate;
			}
		};
	},

	state: function( accordion ) {
		var expected = $.makeArray( arguments ).slice( 1 ),
			actual = accordion.find( ".ui-accordion-content" ).map(function() {
			return $( this ).css( "display" ) === "none" ? 0 : 1;
		}).get();
		QUnit.push( QUnit.equiv(actual, expected), actual, expected );
	}
};
For more information send a message to info at phpclasses dot org.