aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/accordion/common.js
blob: 926d5d9c36e7d4a8f42c5b4d4947378bd45d4f7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
define( [
	"lib/common",
	"ui/widgets/accordion"
], function( common ) {

common.testWidget( "accordion", {
	defaults: {
		active: 0,
		animate: {},
		classes: {
			"ui-accordion-header": "ui-corner-top",
			"ui-accordion-header-collapsed": "ui-corner-all",
			"ui-accordion-content": "ui-corner-bottom"
		},
		collapsible: false,
		disabled: false,
		event: "click",
		header: function( elem ) {
			return elem.find( "> li > :first-child" ).add( elem.find( "> :not(li)" ).even() );
		},
		heightStyle: "auto",
		icons: {
			"activeHeader": "ui-icon-triangle-1-s",
			"header": "ui-icon-triangle-1-e"
		},

		// Callbacks
		activate: null,
		beforeActivate: null,
		create: null
	}
} );

} );