mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
tests sortable - fixed failing enable test
This commit is contained in:
parent
77c5305b2e
commit
63f11cd243
@ -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>
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user