From ee55a9df42ed657a1e60043638e5b9237067bc3b Mon Sep 17 00:00:00 2001 From: Dave Stein Date: Tue, 11 Dec 2012 18:46:35 -0500 Subject: [PATCH] Draggable Unit: Removed any references to addClasses --- tests/unit/draggable/draggable_common.js | 11 +++++------ tests/unit/draggable/draggable_options.js | 16 ---------------- 2 files changed, 5 insertions(+), 22 deletions(-) diff --git a/tests/unit/draggable/draggable_common.js b/tests/unit/draggable/draggable_common.js index 0f6d94b81..61bbe2d8a 100644 --- a/tests/unit/draggable/draggable_common.js +++ b/tests/unit/draggable/draggable_common.js @@ -4,17 +4,16 @@ TestHelpers.commonWidgetTests( "draggable", { appendTo: null, containment: null, disabled: false, - // exclude: "input,textarea,button,select,option", + exclude: "input,textarea,button,select,option", handle: null, helper: false, // backCompat options - // addClasses: true, - // axis: false, + axis: false, // connectToSortable: false, - // cursor: "auto", - // cursorAt: false, - // grid: false, + cursor: "auto", + cursorAt: false, + grid: false, // iframeFix: false, // opacity: false, // refreshPositions: false, diff --git a/tests/unit/draggable/draggable_options.js b/tests/unit/draggable/draggable_options.js index 3f4592d31..4f4ccd938 100644 --- a/tests/unit/draggable/draggable_options.js +++ b/tests/unit/draggable/draggable_options.js @@ -5,22 +5,6 @@ module("draggable: options"); -test("{ addClasses: true }, default", function() { - expect( 1 ); - var el = $("
").draggable({ addClasses: true }); - ok(el.is(".ui-draggable"), "'ui-draggable' class added"); - - el.draggable("destroy"); -}); - -test("{ addClasses: false }", function() { - expect( 1 ); - var el = $("
").draggable({ addClasses: false }); - ok(!el.is(".ui-draggable"), "'ui-draggable' class not added"); - - el.draggable("destroy"); -}); - test("{ appendTo: 'parent' }, default", function() { expect( 2 ); var el = $("#draggable2").draggable({ appendTo: 'parent' });