Skip to content
Permalink
Browse files

tests sortable - fixed failing disable tests

  • Loading branch information
rdworth committed Jun 21, 2008
1 parent 63f11cd commit 284d427bb2b3971aa75759b0cde4f7fa998c7781
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/sortable.js
@@ -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() {

0 comments on commit 284d427

Please sign in to comment.
You can’t perform that action at this time.