From f58277a521ae41b1d3e054a419ef5fda85e7db21 Mon Sep 17 00:00:00 2001 From: Alexander Schmitz Date: Thu, 1 Jan 2015 12:11:06 -0500 Subject: Droppable: Add classes option Ref #7053 Ref gh-1411 --- tests/unit/droppable/droppable.html | 3 ++ tests/unit/droppable/droppable_common.js | 2 - .../unit/droppable/droppable_common_deprecated.js | 21 ++++++++++ tests/unit/droppable/droppable_deprecated.html | 47 ++++++++++++++++++++++ 4 files changed, 71 insertions(+), 2 deletions(-) create mode 100644 tests/unit/droppable/droppable_common_deprecated.js create mode 100644 tests/unit/droppable/droppable_deprecated.html (limited to 'tests/unit') diff --git a/tests/unit/droppable/droppable.html b/tests/unit/droppable/droppable.html index 03ff888e8..52dc3d543 100644 --- a/tests/unit/droppable/droppable.html +++ b/tests/unit/droppable/droppable.html @@ -5,6 +5,9 @@ jQuery UI Droppable Test Suite + diff --git a/tests/unit/droppable/droppable_common.js b/tests/unit/droppable/droppable_common.js index bd56aa35f..87d3ca1db 100644 --- a/tests/unit/droppable/droppable_common.js +++ b/tests/unit/droppable/droppable_common.js @@ -1,12 +1,10 @@ TestHelpers.commonWidgetTests( "droppable", { defaults: { accept: "*", - activeClass: false, addClasses: true, classes: {}, disabled: false, greedy: false, - hoverClass: false, scope: "default", tolerance: "intersect", diff --git a/tests/unit/droppable/droppable_common_deprecated.js b/tests/unit/droppable/droppable_common_deprecated.js new file mode 100644 index 000000000..bd56aa35f --- /dev/null +++ b/tests/unit/droppable/droppable_common_deprecated.js @@ -0,0 +1,21 @@ +TestHelpers.commonWidgetTests( "droppable", { + defaults: { + accept: "*", + activeClass: false, + addClasses: true, + classes: {}, + disabled: false, + greedy: false, + hoverClass: false, + scope: "default", + tolerance: "intersect", + + // callbacks + activate: null, + create: null, + deactivate: null, + drop: null, + out: null, + over: null + } +}); diff --git a/tests/unit/droppable/droppable_deprecated.html b/tests/unit/droppable/droppable_deprecated.html new file mode 100644 index 000000000..5af53a2f7 --- /dev/null +++ b/tests/unit/droppable/droppable_deprecated.html @@ -0,0 +1,47 @@ + + + + + jQuery UI Droppable Test Suite + + + + + + + + + + + + + + + + + + + + +
+
+ +
Draggable
+
Droppable
+
Droppable
+
 
+ +
+ + -- cgit v1.2.3