From 9d802d0651855b4b2746dd3ca7d42446c9c2f34b Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Sat, 8 Nov 2008 22:19:28 +0000 Subject: tests droppable - implemented cssNamespace test --- tests/droppable.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'tests') 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 = $("
").droppable({ cssNamespace: "ui" }); + equals(el[0].className, "ui-droppable"); + el.droppable("destroy"); + + //no className should be added if cssNamepsace is null + el = $("
").droppable({ cssNamespace: null }); + equals(el[0].className, ""); + el.droppable("destroy"); }); test("greedy", function() { -- cgit v1.2.3