diff options
author | Richard Worth <rdworth@gmail.com> | 2009-02-02 07:18:27 +0000 |
---|---|---|
committer | Richard Worth <rdworth@gmail.com> | 2009-02-02 07:18:27 +0000 |
commit | 4ad531044e6da304f72e80a63db66fcf8b13d8e5 (patch) | |
tree | c38c14e958495fd3f886108f5f46967dae6966f6 /tests/unit/droppable | |
parent | 977c6e955d8ba1ea7bc1107e739c2cf7d7cf842a (diff) | |
download | jquery-ui-4ad531044e6da304f72e80a63db66fcf8b13d8e5.tar.gz jquery-ui-4ad531044e6da304f72e80a63db66fcf8b13d8e5.zip |
Fixed #4037 (droppable: cssNamespace option should be removed, addClasses option added)
Diffstat (limited to 'tests/unit/droppable')
-rw-r--r-- | tests/unit/droppable/droppable_options.js | 12 |
1 files changed, 1 insertions, 11 deletions
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 = $("<div></div>").droppable({ addClasses: true }); ok(el.is(".ui-droppable"), "'ui-droppable' class added"); + el.droppable("destroy"); }); test("{ addClasses: false }", function() { el = $("<div></div>").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 = $("<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"); }); |