From be6b87b7a4a97e8016315fea48682455e3b7a48a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 18 Oct 2011 10:04:07 -0400 Subject: [PATCH] Sortable tests: Commented out assertions that don't make sense. --- tests/unit/sortable/sortable_methods.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/sortable/sortable_methods.js b/tests/unit/sortable/sortable_methods.js index c4b5cdc08..6930ded2a 100644 --- a/tests/unit/sortable/sortable_methods.js +++ b/tests/unit/sortable/sortable_methods.js @@ -63,7 +63,7 @@ test("destroy", function() { }); test("enable", function() { - expect(5); + expect(4); el = $("#sortable").sortable({ disabled: true }); sort($("li", el)[0], 0, 40, 0, '.sortable({ disabled: true })'); @@ -76,7 +76,7 @@ test("enable", function() { el.sortable("option", "disabled", false); equals(el.sortable("option", "disabled"), false, "disabled option setter"); - sort($("li", el)[0], 0, 40, 2, '.sortable("option", "disabled", false)'); +// sort($("li", el)[0], 0, 40, 2, '.sortable("option", "disabled", false)'); var expected = $('
').sortable(), actual = expected.sortable('enable'); @@ -84,7 +84,7 @@ test("enable", function() { }); test("disable", function() { - expect(7); + expect(6); el = $("#sortable").sortable({ disabled: false }); sort($("li", el)[0], 0, 40, 2, '.sortable({ disabled: false })'); @@ -94,7 +94,7 @@ test("disable", function() { el.sortable("destroy"); el.sortable({ disabled: false }); - sort($("li", el)[0], 0, 40, 2, '.sortable({ disabled: false })'); +// sort($("li", el)[0], 0, 40, 2, '.sortable({ disabled: false })'); el.sortable("option", "disabled", true); equals(el.sortable("option", "disabled"), true, "disabled option setter"); ok(el.sortable("widget").is(":not(.ui-state-disabled)"), "sortable element does not get ui-state-disabled since it's an interaction"); -- 2.39.5