diff options
Diffstat (limited to 'tests/unit/accordion/common.js')
-rw-r--r-- | tests/unit/accordion/common.js | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/unit/accordion/common.js b/tests/unit/accordion/common.js new file mode 100644 index 000000000..8a859f0ca --- /dev/null +++ b/tests/unit/accordion/common.js @@ -0,0 +1,32 @@ +define( [ + "lib/common", + "ui/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: "> li > :first-child, > :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 + } +}); + +} ); |