aboutsummaryrefslogtreecommitdiffstats
path: root/tests/droppable.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/droppable.js')
-rw-r--r--tests/droppable.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/droppable.js b/tests/droppable.js
index 5e4b8a1b6..345688d04 100644
--- a/tests/droppable.js
+++ b/tests/droppable.js
@@ -156,7 +156,15 @@ test("activeClass", function() {
});
test("cssNamespace", function() {
- ok(false, "missing test");
+ //cssNamespace should be appended with '-droppable' and added as className
+ el = $("<div></div>").droppable({ cssNamespace: "ui" });
+ equals(el[0].className, "ui-droppable");
+ el.droppable("destroy");
+
+ //no className should be added if cssNamepsace is null
+ el = $("<div></div>").droppable({ cssNamespace: null });
+ equals(el[0].className, "");
+ el.droppable("destroy");
});
test("greedy", function() {