tests sortable - fixed failing disable tests

This commit is contained in:
Richard Worth 2008-06-21 10:05:29 +00:00
parent 63f11cd243
commit 284d427bb2

View File

@ -92,18 +92,18 @@ test("enable", function() {
test("disable", function() {
expect(5);
el = $("#sortable").sortable({ disabled: false });
sort($("li", el)[0], 0, 20, 2, '.sortable({ disabled: false })');
sort($("li", el)[0], 0, 40, 2, '.sortable({ disabled: false })');
el.sortable("disable");
sort($("li", el)[0], 0, 20, 0, 'disabled.sortable getter');
sort($("li", el)[0], 0, 40, 0, 'disabled.sortable getter');
el.sortable("destroy");
el.sortable({ disabled: false });
sort($("li", el)[0], 0, 20, 2, '.sortable({ disabled: false })');
sort($("li", el)[0], 0, 40, 2, '.sortable({ disabled: false })');
el.data("disabled.sortable", true);
equals(el.data("disabled.sortable"), true, "disabled.sortable setter");
sort($("li", el)[0], 0, 20, 0, '.data("disabled.sortable", true)');
sort($("li", el)[0], 0, 40, 0, '.data("disabled.sortable", true)');
});
test("defaults", function() {