Draggable Unit: Removed any references to addClasses

This commit is contained in:
Dave Stein 2012-12-11 18:46:35 -05:00
parent 3cd5010b80
commit ee55a9df42
2 changed files with 5 additions and 22 deletions

View File

@ -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,

View File

@ -5,22 +5,6 @@
module("draggable: options");
test("{ addClasses: true }, default", function() {
expect( 1 );
var el = $("<div></div>").draggable({ addClasses: true });
ok(el.is(".ui-draggable"), "'ui-draggable' class added");
el.draggable("destroy");
});
test("{ addClasses: false }", function() {
expect( 1 );
var el = $("<div></div>").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' });