diff options
Diffstat (limited to 'tests/unit/draggable/common.js')
-rw-r--r-- | tests/unit/draggable/common.js | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/tests/unit/draggable/common.js b/tests/unit/draggable/common.js new file mode 100644 index 000000000..7ae032c0f --- /dev/null +++ b/tests/unit/draggable/common.js @@ -0,0 +1,48 @@ +define( [ + "lib/common", + "ui/draggable" +], function( common ) { + +common.testWidget( "draggable", { + defaults: { + appendTo: "parent", + axis: false, + cancel: "input, textarea, button, select, option", + classes: {}, + connectToSortable: false, + containment: false, + cursor: "auto", + cursorAt: false, + disabled: false, + grid: false, + handle: false, + helper: "original", + 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, + + //todo: remove the following option checks when interactions are rewritten: + addClasses: true, + delay: 0, + distance: 1, + iframeFix: false, + + // callbacks + create: null, + drag: null, + start: null, + stop: null + } +}); + +} ); |