diff options
author | Mike Sherov <mike.sherov@gmail.com> | 2013-01-02 18:27:22 -0500 |
---|---|---|
committer | Mike Sherov <mike.sherov@gmail.com> | 2013-01-02 18:27:22 -0500 |
commit | f667d090a74ce3f9c0bacceab93ec542c6915e44 (patch) | |
tree | 2334132b1fa1485e72ac5aa73d46ef78c5ff4f56 /tests | |
parent | cf7dc089e00b781e4fb237da3b3e856cf996c7ed (diff) | |
download | jquery-ui-f667d090a74ce3f9c0bacceab93ec542c6915e44.tar.gz jquery-ui-f667d090a74ce3f9c0bacceab93ec542c6915e44.zip |
Interactions: Update widget defaults to match documented API.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/draggable/draggable_common.js | 9 | ||||
-rw-r--r-- | tests/unit/droppable/droppable_common.js | 11 | ||||
-rw-r--r-- | tests/unit/resizable/resizable_common.js | 7 | ||||
-rw-r--r-- | tests/unit/selectable/selectable_common.js | 12 | ||||
-rw-r--r-- | tests/unit/sortable/sortable_common.js | 18 |
5 files changed, 47 insertions, 10 deletions
diff --git a/tests/unit/draggable/draggable_common.js b/tests/unit/draggable/draggable_common.js index 34fd20564..7c6961af2 100644 --- a/tests/unit/draggable/draggable_common.js +++ b/tests/unit/draggable/draggable_common.js @@ -6,7 +6,6 @@ TestHelpers.commonWidgetTests( "draggable", { cancel: "input,textarea,button,select,option", connectToSortable: false, containment: false, - create: null, cursor: "auto", cursorAt: false, delay: 0, @@ -28,6 +27,12 @@ TestHelpers.commonWidgetTests( "draggable", { snapMode: "both", snapTolerance: 20, stack: false, - zIndex: false + zIndex: false, + + // callbacks + create: null, + drag: null, + start: null, + stop: null } }); diff --git a/tests/unit/droppable/droppable_common.js b/tests/unit/droppable/droppable_common.js index d86afe3dd..c112def3c 100644 --- a/tests/unit/droppable/droppable_common.js +++ b/tests/unit/droppable/droppable_common.js @@ -3,11 +3,18 @@ TestHelpers.commonWidgetTests( "droppable", { accept: "*", activeClass: false, addClasses: true, - create: null, disabled: false, greedy: false, hoverClass: false, scope: "default", - tolerance: "intersect" + tolerance: "intersect", + + // callbacks + activate: null, + create: null, + deactivate: null, + drop: null, + out: null, + over: null } }); diff --git a/tests/unit/resizable/resizable_common.js b/tests/unit/resizable/resizable_common.js index 6758214ad..c261ac5b9 100644 --- a/tests/unit/resizable/resizable_common.js +++ b/tests/unit/resizable/resizable_common.js @@ -1,4 +1,4 @@ -TestHelpers.commonWidgetTests("resizable", { +TestHelpers.commonWidgetTests( "resizable", { defaults: { alsoResize: false, animate: false, @@ -22,6 +22,9 @@ TestHelpers.commonWidgetTests("resizable", { zIndex: 90, // callbacks - create: null + create: null, + resize: null, + start: null, + stop: null } }); diff --git a/tests/unit/selectable/selectable_common.js b/tests/unit/selectable/selectable_common.js index 00bbedc61..d00a47be5 100644 --- a/tests/unit/selectable/selectable_common.js +++ b/tests/unit/selectable/selectable_common.js @@ -3,11 +3,19 @@ TestHelpers.commonWidgetTests("selectable", { appendTo: "body", autoRefresh: true, cancel: "input,textarea,button,select,option", - create: null, delay: 0, disabled: false, distance: 0, filter: "*", - tolerance: "touch" + tolerance: "touch", + + // callbacks + create: null, + selected: null, + selecting: null, + start: null, + stop: null, + unselected: null, + unselecting: null } }); diff --git a/tests/unit/sortable/sortable_common.js b/tests/unit/sortable/sortable_common.js index 0a8e9f2b9..86850a658 100644 --- a/tests/unit/sortable/sortable_common.js +++ b/tests/unit/sortable/sortable_common.js @@ -5,7 +5,6 @@ TestHelpers.commonWidgetTests( "sortable", { cancel: "input,textarea,button,select,option", connectWith: false, containment: false, - create: null, cursor: "auto", cursorAt: false, delay: 0, @@ -26,6 +25,21 @@ TestHelpers.commonWidgetTests( "sortable", { scrollSpeed: 20, scope: "default", tolerance: "intersect", - zIndex: 1000 + zIndex: 1000, + + // callbacks + activate: null, + beforeStop: null, + change: null, + create: null, + deactivate: null, + out: null, + over: null, + receive: null, + remove: null, + sort: null, + start: null, + stop: null, + update: null } }); |