From 4ad531044e6da304f72e80a63db66fcf8b13d8e5 Mon Sep 17 00:00:00 2001 From: Richard Worth Date: Mon, 2 Feb 2009 07:18:27 +0000 Subject: Fixed #4037 (droppable: cssNamespace option should be removed, addClasses option added) --- tests/unit/droppable/droppable_options.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'tests/unit') diff --git a/tests/unit/droppable/droppable_options.js b/tests/unit/droppable/droppable_options.js index 2df2dcb15..c63429bc5 100644 --- a/tests/unit/droppable/droppable_options.js +++ b/tests/unit/droppable/droppable_options.js @@ -22,22 +22,12 @@ test("{ addClasses: true }, default", function() { el = $("
").droppable({ addClasses: true }); ok(el.is(".ui-droppable"), "'ui-droppable' class added"); + el.droppable("destroy"); }); test("{ addClasses: false }", function() { el = $("
").droppable({ addClasses: false }); ok(!el.is(".ui-droppable"), "'ui-droppable' class not added"); -}); - -test("cssNamespace", function() { - //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"); }); -- cgit v1.2.3