tests sortable - fixed failing enable test

This commit is contained in:
Richard Worth 2008-06-21 10:04:40 +00:00
parent 77c5305b2e
commit 63f11cd243
2 changed files with 7 additions and 7 deletions

View File

@ -33,11 +33,11 @@
<div id="main" style="border: 1px solid black; padding: 10px; margin: 10px;">
<ul id="sortable">
<li>Item 1<li>
<li>Item 2<li>
<li>Item 3<li>
<li>Item 4<li>
<li>Item 5<li>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
<li>Item 4</li>
<li>Item 5</li>
</ul>
</div>

View File

@ -76,7 +76,7 @@ test("enable", function() {
expect(4);
el = $("#sortable").sortable({ disabled: true });
sort($("li", el)[0], 0, 50, 0, '.sortable({ disabled: true })');
sort($("li", el)[0], 0, 40, 0, '.sortable({ disabled: true })');
el.sortable("enable");
equals(el.data("disabled.sortable"), false, "disabled.sortable getter");
@ -86,7 +86,7 @@ test("enable", function() {
el.data("disabled.sortable", false);
equals(el.data("disabled.sortable"), false, "disabled.sortable setter");
sort($("li", el)[0], 0, 20, 2, '.data("disabled.sortable", false)');
sort($("li", el)[0], 0, 40, 2, '.data("disabled.sortable", false)');
});
test("disable", function() {