aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard Worth <rdworth@gmail.com>2008-11-08 22:19:28 +0000
committerRichard Worth <rdworth@gmail.com>2008-11-08 22:19:28 +0000
commit9d802d0651855b4b2746dd3ca7d42446c9c2f34b (patch)
tree779d1261d2ebf2e7aae0e3e832551f59e3626963 /tests
parentc1e8c7f07f6b8c742cdfe0062242de892668b69f (diff)
downloadjquery-ui-9d802d0651855b4b2746dd3ca7d42446c9c2f34b.tar.gz
jquery-ui-9d802d0651855b4b2746dd3ca7d42446c9c2f34b.zip
tests droppable - implemented cssNamespace test
Diffstat (limited to 'tests')
-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() {