globals: {
addMonths: true,
asyncTest: true,
- commonWidgetTests: true,
container: true,
deepEqual: true,
d1: true,
-commonWidgetTests( "accordion", {
+TestHelpers.commonWidgetTests( "accordion", {
defaults: {
active: 0,
animate: {},
-commonWidgetTests( "accordion", {
+TestHelpers.commonWidgetTests( "accordion", {
defaults: {
active: 0,
animate: null,
-commonWidgetTests( "autocomplete", {
+TestHelpers.commonWidgetTests( "autocomplete", {
defaults: {
appendTo: "body",
autoFocus: false,
-commonWidgetTests( "button", {
+TestHelpers.commonWidgetTests( "button", {
defaults: {
disabled: null,
icons: {
disabled: false
};
-//commonWidgetTests('datepicker', { defaults: datepicker_defaults });
+//TestHelpers.commonWidgetTests('datepicker', { defaults: datepicker_defaults });
-commonWidgetTests( "dialog", {
+TestHelpers.commonWidgetTests( "dialog", {
defaults: {
autoOpen: true,
buttons: {},
-/*
- * draggable_defaults.js
- */
-
-var draggable_defaults = {
- addClasses: true,
- appendTo: "parent",
- axis: false,
- cancel: ":input,option",
- connectToSortable: false,
- containment: false,
- cursor: "auto",
- cursorAt: false,
- delay: 0,
- disabled: false,
- distance: 1,
- grid: false,
- handle: false,
- helper: "original",
- iframeFix: false,
- opacity: false,
- refreshPositions: false,
- revert: false,
- revertDuration: 500,
- scroll: true,
- scrollSensitivity: 20,
- scrollSpeed: 20,
- scope: "default",
- snap: false,
- snapMode: "both",
- snapTolerance: 20,
- stack: false,
- zIndex: false
-};
-
-commonWidgetTests('draggable', { defaults: draggable_defaults });
+TestHelpers.commonWidgetTests( "draggable", {
+ defaults: {
+ addClasses: true,
+ appendTo: "parent",
+ axis: false,
+ cancel: ":input,option",
+ connectToSortable: false,
+ containment: false,
+ cursor: "auto",
+ cursorAt: false,
+ delay: 0,
+ disabled: false,
+ distance: 1,
+ grid: false,
+ handle: false,
+ helper: "original",
+ iframeFix: false,
+ opacity: false,
+ refreshPositions: false,
+ revert: false,
+ revertDuration: 500,
+ scroll: true,
+ scrollSensitivity: 20,
+ scrollSpeed: 20,
+ scope: "default",
+ snap: false,
+ snapMode: "both",
+ snapTolerance: 20,
+ stack: false,
+ zIndex: false
+ }
+});
-commonWidgetTests( "droppable", {
+TestHelpers.commonWidgetTests( "droppable", {
defaults: {
accept: "*",
activeClass: false,
-commonWidgetTests( "menu", {
+TestHelpers.commonWidgetTests( "menu", {
defaults: {
disabled: false,
menus: "ul",
-commonWidgetTests( "progressbar", {
+TestHelpers.commonWidgetTests( "progressbar", {
defaults: {
disabled: false,
value: 0,
-/*
- * resizable_defaults.js
- */
-
-var resizable_defaults = {
- alsoResize: false,
- animate: false,
- animateDuration: 'slow',
- animateEasing: 'swing',
- aspectRatio: false,
- autoHide: false,
- cancel: ':input,option',
- containment: false,
- delay: 0,
- disabled: false,
- distance: 1,
- ghost: false,
- grid: false,
- handles: 'e,s,se',
- helper: false,
- maxHeight: null,
- maxWidth: null,
- minHeight: 10,
- minWidth: 10,
- zIndex: 1000
-};
-
-commonWidgetTests('resizable', { defaults: resizable_defaults });
+TestHelpers.commonWidgetTests('resizable', {
+ defaults: {
+ alsoResize: false,
+ animate: false,
+ animateDuration: 'slow',
+ animateEasing: 'swing',
+ aspectRatio: false,
+ autoHide: false,
+ cancel: ':input,option',
+ containment: false,
+ delay: 0,
+ disabled: false,
+ distance: 1,
+ ghost: false,
+ grid: false,
+ handles: 'e,s,se',
+ helper: false,
+ maxHeight: null,
+ maxWidth: null,
+ minHeight: 10,
+ minWidth: 10,
+ zIndex: 1000
+ }
+});
-/*
- * selectable_defaults.js
- */
-
-var selectable_defaults = {
- appendTo: 'body',
- autoRefresh: true,
- cancel: ':input,option',
- delay: 0,
- disabled: false,
- distance: 0,
- filter: '*',
- tolerance: 'touch'
-};
-
-commonWidgetTests('selectable', { defaults: selectable_defaults });
+TestHelpers.commonWidgetTests('selectable', {
+ defaults: {
+ appendTo: 'body',
+ autoRefresh: true,
+ cancel: ':input,option',
+ delay: 0,
+ disabled: false,
+ distance: 0,
+ filter: '*',
+ tolerance: 'touch'
+ }
+});
-commonWidgetTests( "slider", {
+TestHelpers.commonWidgetTests( "slider", {
defaults: {
animate: false,
cancel: ':input,option',
-/*
- * sortable_defaults.js
- */
-
-var sortable_defaults = {
- appendTo: "parent",
- axis: false,
- cancel: ":input,option",
- connectWith: false,
- containment: false,
- cursor: 'auto',
- cursorAt: false,
- delay: 0,
- disabled: false,
- distance: 1,
- dropOnEmpty: true,
- forcePlaceholderSize: false,
- forceHelperSize: false,
- grid: false,
- handle: false,
- helper: "original",
- items: "> *",
- opacity: false,
- placeholder: false,
- revert: false,
- scroll: true,
- scrollSensitivity: 20,
- scrollSpeed: 20,
- scope: "default",
- tolerance: "intersect",
- zIndex: 1000
-};
-
-commonWidgetTests('sortable', { defaults: sortable_defaults });
+TestHelpers.commonWidgetTests( "sortable", {
+ defaults: {
+ appendTo: "parent",
+ axis: false,
+ cancel: ":input,option",
+ connectWith: false,
+ containment: false,
+ cursor: "auto",
+ cursorAt: false,
+ delay: 0,
+ disabled: false,
+ distance: 1,
+ dropOnEmpty: true,
+ forcePlaceholderSize: false,
+ forceHelperSize: false,
+ grid: false,
+ handle: false,
+ helper: "original",
+ items: "> *",
+ opacity: false,
+ placeholder: false,
+ revert: false,
+ scroll: true,
+ scrollSensitivity: 20,
+ scrollSpeed: 20,
+ scope: "default",
+ tolerance: "intersect",
+ zIndex: 1000
+ }
+});
-commonWidgetTests( "spinner", {
+TestHelpers.commonWidgetTests( "spinner", {
defaults: {
culture: null,
disabled: false,
-commonWidgetTests( "tabs", {
+TestHelpers.commonWidgetTests( "tabs", {
defaults: {
active: null,
collapsible: false,
-commonWidgetTests( "tabs", {
+TestHelpers.commonWidgetTests( "tabs", {
defaults: {
active: null,
ajaxOptions: null,
});
}
-window.commonWidgetTests = function( widget, settings ) {
+TestHelpers.commonWidgetTests = function( widget, settings ) {
module( widget + ": common widget" );
testWidgetDefaults( widget, settings.defaults );
-commonWidgetTests( "tooltip", {
+TestHelpers.commonWidgetTests( "tooltip", {
defaults: {
content: function() {},
disabled: false,