tests droppable - implemented cssNamespace test

This commit is contained in:
Richard Worth 2008-11-08 22:19:28 +00:00
parent c1e8c7f07f
commit 9d802d0651

View File

@ -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() {