sortable: added default checks for scroll options

This commit is contained in:
Paul Bakaus 2008-06-24 13:17:02 +00:00
parent 090dbb314b
commit f96e61789e

View File

@ -114,6 +114,9 @@ test("defaults", function() {
equals(el.data("distance.sortable"), 0, "distance"); equals(el.data("distance.sortable"), 0, "distance");
equals(el.data("disabled.sortable"), false, "disabled"); equals(el.data("disabled.sortable"), false, "disabled");
equals(el.data("delay.sortable"), 0, "delay"); equals(el.data("delay.sortable"), 0, "delay");
equals(el.data("scroll.sortable"), true, "scroll");
equals(el.data("scrollSensitivity.sortable"), 20, "scrollSensitivity");
equals(el.data("scrollSpeed.sortable"), 20, "scrollSpeed");
equals(el.data("cancel.sortable"), ":input,button", "cancel"); equals(el.data("cancel.sortable"), ":input,button", "cancel");
equals(el.data("items.sortable"), "> *", "items"); equals(el.data("items.sortable"), "> *", "items");
equals(el.data("zIndex.sortable"), 1000, "zIndex"); equals(el.data("zIndex.sortable"), 1000, "zIndex");