]> source.dussan.org Git - jquery-ui.git/commitdiff
tests droppable - implemented cssNamespace test
authorRichard Worth <rdworth@gmail.com>
Sat, 8 Nov 2008 22:19:28 +0000 (22:19 +0000)
committerRichard Worth <rdworth@gmail.com>
Sat, 8 Nov 2008 22:19:28 +0000 (22:19 +0000)
tests/droppable.js

index 5e4b8a1b6dfc2c571bc993b7db32cfec9c4b9ffd..345688d0498edcd2a5174eb3c88c91821f1911d1 100644 (file)
@@ -156,7 +156,15 @@ test("activeClass", function() {
 });\r
 \r
 test("cssNamespace", function() {\r
-       ok(false, "missing test");\r
+       //cssNamespace should be appended with '-droppable' and added as className\r
+       el = $("<div></div>").droppable({ cssNamespace: "ui" });\r
+       equals(el[0].className, "ui-droppable");\r
+       el.droppable("destroy");\r
+\r
+       //no className should be added if cssNamepsace is null\r
+       el = $("<div></div>").droppable({ cssNamespace: null });\r
+       equals(el[0].className, "");\r
+       el.droppable("destroy");\r
 });\r
 \r
 test("greedy", function() {\r