Skip to content
Permalink
Browse files

tests droppable - implemented cssNamespace test

  • Loading branch information...
rdworth committed Nov 8, 2008
1 parent c1e8c7f commit 9d802d0651855b4b2746dd3ca7d42446c9c2f34b
Showing with 9 additions and 1 deletion.
  1. +9 −1 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() {

0 comments on commit 9d802d0

Please sign in to comment.
You can’t perform that action at this time.